Skip to content
Snippets Groups Projects
Commit 4896133d authored by farhatahmad's avatar farhatahmad Committed by Jesus Federico
Browse files

Added signup_url to list of urls not to redirect to (#481)

parent 57c49ca8
Branches
Tags
No related merge requests found
......@@ -33,7 +33,7 @@ module SessionsHelper
def check_email_verified(user)
if user.activated?
# 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]
else
user.main_room
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment