fix login redirect loop - fixes #602
This commit is contained in:
parent
da30078ef4
commit
ba48899a64
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ class ApplicationController < ActionController::Base
|
|||
helper_method :admin?
|
||||
|
||||
def after_sign_in_path_for(resource)
|
||||
sign_in_url = url_for(action: 'new', controller: 'sessions', only_path: false, protocol: 'https')
|
||||
sign_in_url = url_for(action: 'new', controller: 'sessions', only_path: false)
|
||||
|
||||
if request.referer == sign_in_url
|
||||
super
|
||||
|
|
Loading…
Add table
Reference in a new issue