How to track the current user in flask-login?
How to track the current user in flask-login? Question: I m trying to use the current user in my view from flask-login. So i tried to g object I m assigning flask.ext.login.current_user to g object @pot.before_request def load_users(): g.user = current_user.username It works if the user is correct. But when i do sign-up or login …
Total answers: 4