mozo-user connection changes

This commit is contained in:
2015-09-06 17:29:34 +02:00
parent c55740be0a
commit 4ef7ecba41
13 changed files with 379 additions and 319 deletions
@@ -10,7 +10,7 @@ module Users
user = User.find_by_authentication_token(params[:auth_token])
sign_in user if user
sign_out current_user if current_user && !user # Other token attempt of logged in user
else
elsif request.format.html?
return if Rails.env.test? and action_name == 'index'
authenticate_user!
end