SessionController: remove remember_me
It is somehow taken care by warden
This commit is contained in:
parent
002510d5cb
commit
27085af9b5
1 changed files with 0 additions and 3 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue