Skip to content

Commit

Permalink
Change setting name to make it more consistent
Browse files Browse the repository at this point in the history
Add example to config file
  • Loading branch information
kidhab committed Mar 29, 2023
1 parent e49fc62 commit fe59308
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/sessions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ def create

def destroy
logout
if FoodsoftConfig[:logout_redirect_to].present?
redirect_to FoodsoftConfig[:logout_redirect_to]
if FoodsoftConfig[:logout_redirect_url].present?
redirect_to FoodsoftConfig[:logout_redirect_url]
else
redirect_to login_url, :notice => I18n.t('sessions.logged_out')
end
Expand Down
3 changes: 3 additions & 0 deletions config/app_config.yml.SAMPLE
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ default: &defaults
# custom foodsoft software URL (used in footer)
#foodsoft_url: https://github.com/foodcoops/foodsoft

# URL to redirect to after logging out
# logout_redirect_url: https://foodcoop.test

# Default language
#default_locale: en
# By default, foodsoft takes the language from the webbrowser/operating system.
Expand Down

0 comments on commit fe59308

Please sign in to comment.