Add alert for bad connexion with unified connexion

This commit is contained in:
Xavier J 2017-01-02 09:38:49 +01:00
parent 39bab7ac6f
commit 2bf0cc907b

View file

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