Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

login_manager.login_message is not showing when redirecting to login_manager.login_view from blueprints routes #749

Open
vokiatik opened this issue May 23, 2023 · 0 comments

Comments

@vokiatik
Copy link

I couldn't find a solution, so i thought that it is a bug.

According to information i found on the internet, login_required decorator redirects to login_view he found on blueprint folder, then in app folder, then returns 401 error if nothing is specified otherwise.

I expect login_message to work the same way, but i specifyed login_manager.login_message globally in my app, but when i am beeing redirected to login_view from blueprint route, there is no message at all.

I think it should display global login_manager.login_messge if there is nothing specifyed otherwise.

@vokiatik vokiatik changed the title login_manager.login_message is not showing when redirecting to login_manager.login_view from blueprints login_manager.login_message is not showing when redirecting to login_manager.login_view from blueprints routes May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant