Merge pull request #4862 from betagouv/fix-admin-activation
fix error message during admin activation error
This commit is contained in:
commit
15e25b0c3e
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ class Administrateurs::ActivateController < ApplicationController
|
|||
flash.notice = "Mot de passe enregistré"
|
||||
redirect_to admin_procedures_path
|
||||
else
|
||||
flash.alert = administrateur.errors.full_messages
|
||||
flash.alert = user.administrateur.errors.full_messages
|
||||
redirect_to admin_activate_path(token: update_administrateur_params[:reset_password_token])
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue