aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/routes.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 9f426fabf..f557e681b 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -72,7 +72,8 @@ Alaveteli::Application.routes.draw do
# Use /user/XXXX for things that anyone can see about that user.
# Note that /profile isn't indexed by search (see robots.txt)
match '/profile/sign_in' => 'user#signin', :as => :signin
- match '/profile/sign_up' => 'user#signup', :as => :signup
+ match '/profile/sign_up' => 'user#signup', :as => :signup, :via => :post
+ match '/profile/sign_up' => 'user#signin', :via => :get
match '/profile/sign_out' => 'user#signout', :as => :signout
match '/c/:email_token' => 'user#confirm', :as => :confirm