On sites with login_required enabled, after signup, don't show the /login page again

This commit is contained in:
Neil Lalonde
2013-10-30 16:37:22 -04:00
parent 704adc00ca
commit ce5ebc3eb5
2 changed files with 44 additions and 33 deletions

View File

@ -5,6 +5,8 @@ class StaticController < ApplicationController
def show
return redirect_to('/') if current_user && params[:id] == 'login'
map = {
"faq" => "faq_url",
"tos" => "tos_url",