Fix: Server error on logout if redirect to other host
This commit is contained in:
parent
e194c68397
commit
2e72e1f73f
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ class SessionsController < ApplicationController
|
||||||
def destroy
|
def destroy
|
||||||
logout
|
logout
|
||||||
if FoodsoftConfig[:logout_redirect_url].present?
|
if FoodsoftConfig[:logout_redirect_url].present?
|
||||||
redirect_to FoodsoftConfig[:logout_redirect_url]
|
redirect_to FoodsoftConfig[:logout_redirect_url], allow_other_host: true
|
||||||
else
|
else
|
||||||
redirect_to login_url, notice: I18n.t('sessions.logged_out')
|
redirect_to login_url, notice: I18n.t('sessions.logged_out')
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue