X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/464c490cae90a5b8ad78c9d234c282c52314a1db..0f25285ab6f59b42535b21305cfcca00a285f028:/app/controllers/user_controller.rb diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index 47c1cff9f..553e841aa 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -119,6 +119,9 @@ class UserController < ApplicationController def new @title = 'create account' + # The user is logged in already, so don't show them the signup page, instead + # send them to the home page + redirect_to :controller => 'site', :action => 'index' if session[:user] end def login