Answers for "flask impliment a user log"

2

check if user log in flask

from flask_login import current_user

@app.route(...)
def your_route():
    return current_user.is_authenticated
Posted by: Guest on October-27-2020
0

flask user create account at

<p><i class="fa fa-fw fa-calendar"></i>Create account at {{ user.create_account.strftime('%Y-%m-%d') }}</p>
Posted by: Guest on November-29-2020

Python Answers by Framework

Browse Popular Code Answers by Language