SessionController: remove remember_me

It is somehow taken care by warden
This commit is contained in:
simon lehericey 2019-08-16 15:53:35 +02:00
parent 002510d5cb
commit 27085af9b5

View file

@ -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)