Confirmation → activation
This commit is contained in:
parent
f86cc835f8
commit
b317b49b3d
3 changed files with 11 additions and 11 deletions
|
@ -3,14 +3,14 @@ module Manager
|
|||
def resend_confirmation_instructions
|
||||
user = User.find(params[:id])
|
||||
user.resend_confirmation_instructions
|
||||
flash[:notice] = "Le message de confirmation de l’adresse email a été renvoyé."
|
||||
flash[:notice] = "L'email d'activation de votre compte a été renvoyé."
|
||||
redirect_to manager_user_path(user)
|
||||
end
|
||||
|
||||
def confirm
|
||||
user = User.find(params[:id])
|
||||
user.confirm
|
||||
flash[:notice] = "L’adresse email de l’utilisateur a été marquée comme confirmée."
|
||||
flash[:notice] = "L’adresse email de l’utilisateur a été marquée comme activée."
|
||||
redirect_to manager_user_path(user)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue