Sync password after login

This commit is contained in:
Mathieu Magnin 2017-02-07 16:56:21 +01:00
parent 749baedf43
commit aa88fad777
7 changed files with 49 additions and 27 deletions

View file

@ -101,6 +101,7 @@ class Users::SessionsController < Sessions::SessionsController
if resource = klass.find_for_database_authentication(email: params[:user][:email])
if resource.valid_password?(params[:user][:password])
sign_in resource
resource.force_sync_credentials
set_flash_message :notice, :signed_in
end
end