summaryrefslogtreecommitdiff
path: root/users/app/controllers/controller_extension
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2012-11-04 22:14:13 +0100
committerAzul <azul@leap.se>2012-11-04 22:14:13 +0100
commitef90c45998b33ba8606c3786875e21496ace4686 (patch)
treef6705a79c03cad908d6ccc2131582a1bb2de3594 /users/app/controllers/controller_extension
parentc8f1eb55be6743fcc476d6a8f81e1244e455154a (diff)
fixed functional tests
Diffstat (limited to 'users/app/controllers/controller_extension')
-rw-r--r--users/app/controllers/controller_extension/authentication.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/users/app/controllers/controller_extension/authentication.rb b/users/app/controllers/controller_extension/authentication.rb
index 0408b77..87f7921 100644
--- a/users/app/controllers/controller_extension/authentication.rb
+++ b/users/app/controllers/controller_extension/authentication.rb
@@ -7,8 +7,8 @@ module ControllerExtension::Authentication
helper_method :current_user, :logged_in?, :admin?
end
- def current_user
- @current_user ||= request.env['warden'].user
+ def authentication_error
+ warden.winning_strategy.try(:message)
end
def logged_in?