Add alert for bad connexion with unified connexion
This commit is contained in:
parent
39bab7ac6f
commit
2bf0cc907b
1 changed files with 1 additions and 0 deletions
|
@ -37,6 +37,7 @@ class Users::SessionsController < Sessions::SessionsController
|
|||
elsif administrateur_signed_in?
|
||||
redirect_to admin_path
|
||||
else
|
||||
flash.alert = 'Mauvais couple login / mot de passe'
|
||||
new
|
||||
render :new, status: 401
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue