diff --git a/app/controllers/manager/users_controller.rb b/app/controllers/manager/users_controller.rb index effa7043c..287b2f20d 100644 --- a/app/controllers/manager/users_controller.rb +++ b/app/controllers/manager/users_controller.rb @@ -23,6 +23,13 @@ module Manager end end + def unblock_mails + user = User.find(params[:id]) + user.update!(email_verified_at: Time.current) + flash[:notice] = "Les emails ont été débloqués." + redirect_to manager_user_path(user) + end + def resend_confirmation_instructions user = User.find(params[:id]) user.resend_confirmation_instructions diff --git a/app/views/manager/users/show.html.erb b/app/views/manager/users/show.html.erb index 41f353302..ac1881a35 100644 --- a/app/views/manager/users/show.html.erb +++ b/app/views/manager/users/show.html.erb @@ -26,6 +26,14 @@ as well as a link to its edit page.