forked from External/greenlight
Added signup_url to list of urls not to redirect to (#481)
This commit is contained in:
parent
57c49ca8f4
commit
4896133d58
|
@ -33,7 +33,7 @@ module SessionsHelper
|
||||||
def check_email_verified(user)
|
def check_email_verified(user)
|
||||||
if user.activated?
|
if user.activated?
|
||||||
# Get the url to redirect the user to
|
# Get the url to redirect the user to
|
||||||
url = if cookies[:return_to] && cookies[:return_to] != root_url
|
url = if cookies[:return_to] && ![root_url, signup_url].include?(cookies[:return_to])
|
||||||
cookies[:return_to]
|
cookies[:return_to]
|
||||||
else
|
else
|
||||||
user.main_room
|
user.main_room
|
||||||
|
|
Loading…
Reference in New Issue