When I log a user in, I set logged_in
in the session, then check this value in the template. Is there a better way to check if the user is logged in with Flask-Login?
session['logged_in'] = True
login_user(user)
{% if session['logged_in'] %}
...
{% endif %}