Merge pull request #2927 from betagouv/remove-confirmation-button
Remove the confirmation button from the manager
This commit is contained in:
commit
839247922a
3 changed files with 0 additions and 9 deletions
|
@ -6,12 +6,5 @@ module Manager
|
||||||
flash[:notice] = "L'email d'activation de votre compte a été renvoyé."
|
flash[:notice] = "L'email d'activation de votre compte a été renvoyé."
|
||||||
redirect_to manager_user_path(user)
|
redirect_to manager_user_path(user)
|
||||||
end
|
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
|
||||||
end
|
end
|
||||||
|
|
|
@ -35,7 +35,6 @@ as well as a link to its edit page.
|
||||||
<div>
|
<div>
|
||||||
<% if !user.confirmed? %>
|
<% if !user.confirmed? %>
|
||||||
<%= link_to('Renvoyer l’email de confirmation', [:resend_confirmation_instructions, namespace, page.resource], method: :post, class: 'button') %>
|
<%= 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 %>
|
<% end %>
|
||||||
<div>
|
<div>
|
||||||
</header>
|
</header>
|
||||||
|
|
|
@ -22,7 +22,6 @@ Rails.application.routes.draw do
|
||||||
|
|
||||||
resources :users, only: [:index, :show] do
|
resources :users, only: [:index, :show] do
|
||||||
post 'resend_confirmation_instructions', on: :member
|
post 'resend_confirmation_instructions', on: :member
|
||||||
post 'confirm', on: :member
|
|
||||||
end
|
end
|
||||||
|
|
||||||
resources :gestionnaires, only: [:index, :show] do
|
resources :gestionnaires, only: [:index, :show] do
|
||||||
|
|
Loading…
Reference in a new issue