2018-05-31 15:18:06 +02:00
|
|
|
|
module Manager
|
|
|
|
|
class UsersController < Manager::ApplicationController
|
2018-07-17 12:10:56 +02:00
|
|
|
|
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é."
|
|
|
|
|
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."
|
|
|
|
|
redirect_to manager_user_path(user)
|
|
|
|
|
end
|
2018-05-31 15:18:06 +02:00
|
|
|
|
end
|
|
|
|
|
end
|