in progress

This commit is contained in:
r888888888 2013-04-30 23:25:26 -07:00
parent 51a62a8df6
commit a25242f68d
4 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,11 @@
module Maintenance
module User
class DeletionsController < ApplicationController
def show
end
def destroy
end
end
end
end

View 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>

View File

@ -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 %>

View File

@ -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