Revert "Redirecting the user to the referrer on login success/fail (#374)" (#389)

This reverts commit 404134aa8d.
This commit is contained in:
Jesus Federico
2019-03-05 14:45:42 -05:00
committed by GitHub
parent 49779b2dd1
commit 37af17fae1
3 changed files with 2 additions and 14 deletions

View File

@ -32,11 +32,7 @@ module SessionsHelper
# If email verification is disabled, or the user has verified, go to their room
def check_email_verified(user)
if !Rails.configuration.enable_email_verification || user.email_verified
if request.referrer.present?
redirect_to request.referrer
else
redirect_to user.main_room
end
redirect_to user.main_room
else
redirect_to resend_path
end