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?
|
elsif administrateur_signed_in?
|
||||||
redirect_to admin_path
|
redirect_to admin_path
|
||||||
else
|
else
|
||||||
|
flash.alert = 'Mauvais couple login / mot de passe'
|
||||||
new
|
new
|
||||||
render :new, status: 401
|
render :new, status: 401
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue