Skip to content
This repository has been archived by the owner on Mar 11, 2021. It is now read-only.

Commit

Permalink
Move account request functionality out of platform
Browse files Browse the repository at this point in the history
  • Loading branch information
reefdog committed Aug 17, 2015
1 parent 71e6c72 commit 2c25efd
Show file tree
Hide file tree
Showing 15 changed files with 78 additions and 629 deletions.
3 changes: 3 additions & 0 deletions Gemfile.lock
Expand Up @@ -24,6 +24,7 @@ PATH
remote: ../bull_proof_china_shop
specs:
bull_proof_china_shop (0.0.1)
has_secure_token (~> 1.0.0)
rails (~> 4.2.3)

GEM
Expand Down Expand Up @@ -157,6 +158,8 @@ GEM
guard-minitest (2.4.4)
guard-compat (~> 1.2)
minitest (>= 3.0)
has_secure_token (1.0.0)
activerecord (>= 3.0)
hashie (3.4.2)
highline (1.6.21)
http-cookie (1.0.2)
Expand Down
40 changes: 0 additions & 40 deletions app/controllers/signup_controller.rb

This file was deleted.

2 changes: 0 additions & 2 deletions app/helpers/signup_helper.rb

This file was deleted.

10 changes: 0 additions & 10 deletions app/mailers/lifecycle_mailer.rb
Expand Up @@ -69,16 +69,6 @@ def reset_request(account)
})
end

def verification_request_notification(verification_request)
@request = verification_request
mail({
:subject => "New DocumentCloud account request from #{verification_request.requester_full_name} (#{verification_request.organization_name}) in #{Rails.env}",
:from => NO_REPLY,
:reply_to => verification_request.requester_email,
:to => INFO
})
end

# When someone sends a message through the "Contact Us" form, deliver it to
# us via email.
def contact_us(account, params)
Expand Down
51 changes: 0 additions & 51 deletions app/models/verification_request.rb

This file was deleted.

This file was deleted.

167 changes: 0 additions & 167 deletions app/views/signup/index.html.erb

This file was deleted.

5 changes: 2 additions & 3 deletions config/routes.rb
Expand Up @@ -130,9 +130,8 @@
match '/accounts/enable/:key' => 'accounts#enable', :via => [:get, :post], :as => :enable_account
match '/reset_password' => 'accounts#reset', :via => [:get, :post], :as => :reset_password

get '/signup' => 'redirect#index', :url => '/apply'
get '/apply' => 'signup#index', :as => :apply
post '/apply' => 'signup#create', :as => :apply_create
get '/signup' => 'redirect#index', :url => '/plans/apply'
get '/apply' => 'redirect#index', :url => '/plans/apply'

# Organizations management
resources :organizations, :only=>:update
Expand Down

0 comments on commit 2c25efd

Please sign in to comment.