Merge pull request #4862 from betagouv/fix-admin-activation

fix error message during admin activation error
This commit is contained in:
Paul Chavard 2020-03-05 13:09:44 +01:00 committed by GitHub
commit 15e25b0c3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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