Commit 91aaa8ce06a76afa2ac51c0dd1e9e119dd02e8d2

Authored by Dhruv Kapadia
1 parent 970b8d3b

Preventing new users from signing up for api

app/views/sessions/new.html.erb
... ... @@ -13,10 +13,10 @@
13 13  
14 14 <ul>
15 15 <li>
16   - <%= link_to "Sign up", new_user_path %>
17   - </li>
18   - <li>
19 16 <%= link_to "Forgot password?", new_password_path %>
20 17 </li>
21 18 </ul>
  19 +<p>
  20 + We are currently not accepting any new users of the Pairwise API. If you are interested in becoming a user of the pairwise api, please contact info@allourideas.org. For more information visit <a href="http://www.allourideas.org">our main website</a>
  21 + </p>
22 22  
... ...
vendor/gems/thoughtbot-clearance-0.8.2/config/clearance_routes.rb
... ... @@ -7,7 +7,7 @@ ActionController::Routing::Routes.draw do |map|
7 7 :controller => 'clearance/sessions',
8 8 :only => [:new, :create, :destroy]
9 9  
10   - map.resources :users, :controller => 'clearance/users' do |users|
  10 + map.resources :users, :controller => 'clearance/users', :except => [:new, :create] do |users|
11 11 users.resource :password,
12 12 :controller => 'clearance/passwords',
13 13 :only => [:create, :edit, :update]
... ...