Skip to content

Commit

Permalink
Use config["LOGOUT_REDIRECT_URL"] - see dpgaspar#1154
Browse files Browse the repository at this point in the history
  • Loading branch information
jeverling committed Oct 13, 2019
1 parent 5d9a75e commit bfa9c73
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion flask_appbuilder/security/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,11 @@ def login(self):
@expose("/logout/")
def logout(self):
logout_user()
return redirect(self.appbuilder.get_url_for_index)
return redirect(
self.appbuilder.app.config.get(
"LOGOUT_REDIRECT_URL", self.appbuilder.get_url_for_index
)
)


class AuthDBView(AuthView):
Expand Down

0 comments on commit bfa9c73

Please sign in to comment.