12_generate_custom_csv_file #58
2 changed files with 8 additions and 1 deletions
|
@ -21,8 +21,12 @@ class SessionsController < ApplicationController
|
||||||
|
|
||||||
def destroy
|
def destroy
|
||||||
logout
|
logout
|
||||||
|
if FoodsoftConfig[:logout_redirect_url].present?
|
||||||
|
redirect_to FoodsoftConfig[:logout_redirect_url]
|
||||||
|
else
|
||||||
redirect_to login_url, :notice => I18n.t('sessions.logged_out')
|
redirect_to login_url, :notice => I18n.t('sessions.logged_out')
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# redirect to root, going to default foodcoop when none given
|
# redirect to root, going to default foodcoop when none given
|
||||||
# this may not be so much session-related, but it must be somewhere
|
# this may not be so much session-related, but it must be somewhere
|
||||||
|
|
|
@ -32,6 +32,9 @@ default: &defaults
|
||||||
# custom foodsoft software URL (used in footer)
|
# custom foodsoft software URL (used in footer)
|
||||||
#foodsoft_url: https://github.com/foodcoops/foodsoft
|
#foodsoft_url: https://github.com/foodcoops/foodsoft
|
||||||
|
|
||||||
|
# URL to redirect to after logging out
|
||||||
|
# logout_redirect_url: https://foodcoop.test
|
||||||
|
|
||||||
# Default language
|
# Default language
|
||||||
#default_locale: en
|
#default_locale: en
|
||||||
# By default, foodsoft takes the language from the webbrowser/operating system.
|
# By default, foodsoft takes the language from the webbrowser/operating system.
|
||||||
|
|
Loading…
Reference in a new issue