mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 00:37:44 +08:00
On sites with login_required enabled, after signup, don't show the /login page again
This commit is contained in:
@ -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",
|
||||
|
Reference in New Issue
Block a user