From 27085af9b54395c75eb4f6f0de0782f543945457 Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Fri, 16 Aug 2019 15:53:35 +0200 Subject: [PATCH] SessionController: remove remember_me It is somehow taken care by warden --- app/controllers/users/sessions_controller.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/controllers/users/sessions_controller.rb b/app/controllers/users/sessions_controller.rb index dd66d3bf6..7bd19cef8 100644 --- a/app/controllers/users/sessions_controller.rb +++ b/app/controllers/users/sessions_controller.rb @@ -14,12 +14,9 @@ class Users::SessionsController < Devise::SessionsController # POST /resource/sign_in def create - remember_me = params[:user][:remember_me] == '1' - user = User.find_by(email: params[:user][:email]) if user&.valid_password?(params[:user][:password]) - user.remember_me = remember_me sign_in(user) current_user.update(loged_in_with_france_connect: nil)