diff options
author | Azul <azul@leap.se> | 2012-11-12 19:42:00 +0100 |
---|---|---|
committer | Azul <azul@leap.se> | 2012-11-12 19:42:00 +0100 |
commit | a0ba5ec9c705a74b86fdb558436fb05103bf88e3 (patch) | |
tree | 22e0562166e38eb84dc20c8e7addf3089b3af13c /users/app/controllers/controller_extension | |
parent | 05ea71016fd54a14159c72299c25efbdc2f177bc (diff) | |
parent | fe8b49232d31681667badaaeff7aa4d0a40445ea (diff) |
Merge branch 'develop' into feature-client-side-validations
Conflicts:
Gemfile.lock
Diffstat (limited to 'users/app/controllers/controller_extension')
-rw-r--r-- | users/app/controllers/controller_extension/authentication.rb | 4 |
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 c3342f3..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 ||= User.find(session[:user_id]) if session[:user_id] + def authentication_error + warden.winning_strategy.try(:message) end def logged_in? |