Skip to content

LOGOUT_URL override not working? #711

Closed Answered by jwag956
lgammo asked this question in Q&A
Discussion options

You must be logged in to vote

If I am understanding your question - I think you have things reversed! Flask-Security defines views such as login, logout, reset, change - and has flask map a URL to those views. So - if your application wants to reference FS's login view with the URL "/auth/userlogin" that's what the LOGIN_URL is for. IF you want your OWN login/logout views the only thing you can do is have Flask-Security not register its blueprint at all - and you defines all the endpoints. Setting 'register_blueprint=False" will stop FS from registering any endpoints.

I would ask however - if you are replacing the endpoint/view - you are removing a lot of FS functionality - there are many ways to augment the login/log…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by lgammo
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants