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
Flask-Lastuser currently sets g.user on every request, even if the request needs no user authentication check. By switching to a proxy, the user can be authenticated only if required.
There will be no performance penalty with this switch, but:
All uses of g.user across apps must be replaced, and
To facilitate a transition, Flask-Lastuser must continue setting g.user in before_request until the transition is complete.
The text was updated successfully, but these errors were encountered:
Flask-Login provides a
current_user
proxy that is available everywhere, including in templates.Flask's documentation on local proxies hints at a crucial advantage: the backing function of a proxy is only called the first time the proxy is accessed.
Flask-Lastuser currently sets
g.user
on every request, even if the request needs no user authentication check. By switching to a proxy, the user can be authenticated only if required.There will be no performance penalty with this switch, but:
g.user
across apps must be replaced, andbefore_request
until the transition is complete.The text was updated successfully, but these errors were encountered: