From 91e560163597690fe62f4d2cd6eb91396a4964f1 Mon Sep 17 00:00:00 2001 From: Martijn Stegeman Date: Fri, 18 Dec 2020 15:49:55 +0100 Subject: [PATCH] kill token login --- app/helpers/authentication_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/authentication_helper.rb b/app/helpers/authentication_helper.rb index c6666171..a1e28f98 100644 --- a/app/helpers/authentication_helper.rb +++ b/app/helpers/authentication_helper.rb @@ -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