forked from e621ng/e621ng
in progress
This commit is contained in:
parent
51a62a8df6
commit
a25242f68d
11
app/controllers/maintenance/user/deletions_controller.rb
Normal file
11
app/controllers/maintenance/user/deletions_controller.rb
Normal file
@ -0,0 +1,11 @@
|
||||
module Maintenance
|
||||
module User
|
||||
class DeletionsController < ApplicationController
|
||||
def show
|
||||
end
|
||||
|
||||
def destroy
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
12
app/views/maintenance/user/deletions/show.html.erb
Normal file
12
app/views/maintenance/user/deletions/show.html.erb
Normal file
@ -0,0 +1,12 @@
|
||||
<h1>Delete Account</h1>
|
||||
|
||||
<p>You can delete your account. This will not actually remove your account from the database, but it will do the following things:</p>
|
||||
|
||||
<ul>
|
||||
<li>Rename your account to a generic string</li>
|
||||
<li>Scramble your password</li>
|
||||
<li>Remove all your favorites</li>
|
||||
</ul>
|
||||
|
||||
<p>You must enter your password to delete your account.</p>
|
||||
|
@ -34,6 +34,8 @@
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
<li><%= link_to "Delete", maintenance_user_deletion_path %></li>
|
||||
|
||||
<li>|</li>
|
||||
<li><%= link_to "Sign out", sign_out_session_path %></li>
|
||||
<% end %>
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user