Skip to content

Commit

Permalink
kill token login
Browse files Browse the repository at this point in the history
  • Loading branch information
stgm committed Dec 18, 2020
1 parent 4144290 commit 91e5601
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/authentication_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def current_user
private

def load_current_user
if authenticated? && login = Login.where(login: (request.session['token'] || request.session['cas']['user']).downcase).first
if authenticated? && login = Login.where(login: (request.session['cas']['user']).downcase).first
@current_user = login.user
else
# use an empty user object in case of no login
Expand Down

0 comments on commit 91e5601

Please sign in to comment.