diff options
author | Azul <azul@leap.se> | 2014-04-04 15:40:22 +0200 |
---|---|---|
committer | Azul <azul@leap.se> | 2014-04-04 15:40:22 +0200 |
commit | aeb5d8cf8dc6329906f14bf4595a229e002691c1 (patch) | |
tree | 000f3137aeb711a4008dd58f930f9c6b7d9d0e65 /users/app/controllers/sessions_controller.rb | |
parent | 7b4f9ad334ec702449fdc683ea8fc312e06b2bd9 (diff) |
redirect home when logged in visits /signup (#5446)
Diffstat (limited to 'users/app/controllers/sessions_controller.rb')
-rw-r--r-- | users/app/controllers/sessions_controller.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/users/app/controllers/sessions_controller.rb b/users/app/controllers/sessions_controller.rb index 0195f30..8919a4d 100644 --- a/users/app/controllers/sessions_controller.rb +++ b/users/app/controllers/sessions_controller.rb @@ -1,7 +1,8 @@ class SessionsController < ApplicationController + before_filter :redirect_if_logged_in, :only => [:new] + def new - redirect_to home_url if logged_in? @session = Session.new if authentication_errors @errors = authentication_errors |