fix login redirect loop - fixes #602 (#609)

This commit is contained in:
Devin Howard 2016-08-16 20:03:22 +08:00 committed by Connor Turland
parent 57181e208f
commit 03e98e617b

View file

@ -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