diff --git a/app/controllers/manager/users_controller.rb b/app/controllers/manager/users_controller.rb index 882993909..d655c552b 100644 --- a/app/controllers/manager/users_controller.rb +++ b/app/controllers/manager/users_controller.rb @@ -6,12 +6,5 @@ module Manager 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 activée." - redirect_to manager_user_path(user) - end end end diff --git a/app/views/manager/users/show.html.erb b/app/views/manager/users/show.html.erb index 46cd01b56..079866322 100644 --- a/app/views/manager/users/show.html.erb +++ b/app/views/manager/users/show.html.erb @@ -35,7 +35,6 @@ as well as a link to its edit page.
<% if !user.confirmed? %> <%= link_to('Renvoyer l’email de confirmation', [:resend_confirmation_instructions, namespace, page.resource], method: :post, class: 'button') %> - <%= link_to('Confirmer l’email', confirm_manager_user_path(user), method: :post, class: 'button') %> <% end %>
diff --git a/config/routes.rb b/config/routes.rb index 0b520e22f..3bddb4def 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -22,7 +22,6 @@ Rails.application.routes.draw do resources :users, only: [:index, :show] do post 'resend_confirmation_instructions', on: :member - post 'confirm', on: :member end resources :gestionnaires, only: [:index, :show] do