You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Decorator order matters in Python. @login @route view means "register the view, then create a new function that wraps the view with login", while @route @login view means "wrap the view with login, then register that wrapped view". This is a property of Python, and you'll want to understand this for decorators in general, not just flask-login.
Describe the bug
if login_required is not closest to the function then seems it is not protected.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The annotion order doesn't matter.
The text was updated successfully, but these errors were encountered: