fix error message during admin activation error
This commit is contained in:
parent
fc46aae349
commit
63328ffbcf
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