In our previous recipe, we learned how to implement session-based authentication ourselves. Flask-Login is a popular extension that handles a lot of the same stuff in a helpful and efficient way, and thus saves us from reinventing the wheel all over again. In addition, Flask-Login will not bind us to any specific database or limit us to use any specific fields or methods for authentication. It can also handle the Remember me feature, account recovery features, and so on. In this recipe, we will understand how to use Flask-Login with our application.
Authenticating using the Flask-Login extension
Getting ready
Modify the application created in the previous recipe to accommodate the changes to be done by the Flask-Login extension...