7ca476fc61
- Allow to re-send the confirmation email - Allow to confirm the email address manually
17 lines
563 B
Ruby
17 lines
563 B
Ruby
module Manager
|
||
class UsersController < Manager::ApplicationController
|
||
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
|
||
end
|
||
end
|