diff --git a/app/controllers/maintenance/user/deletions_controller.rb b/app/controllers/maintenance/user/deletions_controller.rb new file mode 100644 index 000000000..664062b88 --- /dev/null +++ b/app/controllers/maintenance/user/deletions_controller.rb @@ -0,0 +1,11 @@ +module Maintenance + module User + class DeletionsController < ApplicationController + def show + end + + def destroy + end + end + end +end diff --git a/app/views/maintenance/user/deletions/show.html.erb b/app/views/maintenance/user/deletions/show.html.erb new file mode 100644 index 000000000..916a622d3 --- /dev/null +++ b/app/views/maintenance/user/deletions/show.html.erb @@ -0,0 +1,12 @@ +

Delete Account

+ +

You can delete your account. This will not actually remove your account from the database, but it will do the following things:

+ + + +

You must enter your password to delete your account.

+ diff --git a/app/views/users/_secondary_links.html.erb b/app/views/users/_secondary_links.html.erb index 74e5eff01..8938d0c18 100644 --- a/app/views/users/_secondary_links.html.erb +++ b/app/views/users/_secondary_links.html.erb @@ -34,6 +34,8 @@ <% end %> <% end %> +
  • <%= link_to "Delete", maintenance_user_deletion_path %>
  • +
  • |
  • <%= link_to "Sign out", sign_out_session_path %>
  • <% end %> diff --git a/config/routes.rb b/config/routes.rb index 58543ec82..22e191d5c 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -47,6 +47,7 @@ Danbooru::Application.routes.draw do namespace :user do resource :password_reset, :only => [:new, :create, :edit, :update] resource :login_reminder, :only => [:new, :create] + resource :deletion, :only => [:show, :destroy] end end