For session management, use the Flask-Login library.
For hashing passwords, use the built-in Flask tool.
Protect the app's pages for logged-in users only.
To develop a User model, use Flask-SQLAlchemy.
Users should be able to create accounts and log in using sign-up and login forms.
Import current user from flask login.
route @application (...)
your route() is a function that defines your route.
is authenticated returns the current user.
Flask-Login uses sessions for authentication by default. This implies you must set the secret key on your application, or Flask will prompt you to do so.
The login procedure appears to be safe. However, neither the prospective existing user nor the existing email address were checked in the signup form. Unless the underlying User schema is in charge of this. You should also demand a password with a minimum level of complexity.
Flask-Session is a Flask extension that adds server-side session functionality to your application. The Session is the period of time between when a client logs in and logs off of a server. The data that must be saved in the Session is saved on the server in a temporary directory.
Learner's Ratings
4.6
Overall Rating
85%
0%
5%
5%
5%
Reviews
PATIL KUNAL SUNILBHAI
5
Fabulous learning experience
A
AMAN KUMAR
5
Very nice teaching.
S
Samiul Basir
5
She is best instructor I've ever learned.
S
Sujit babu
5
GREAT TEACHER ❤❤❤❤❤❤❤😍😍😍😍😘😘😘💕💕💕💕
R
Rajnish Kumar
5
ma'am this session is very well ma'am please prove Django
9
90videos Challenge5
5
Very good teching Thank You mam
A
Aditya Singh
5
Great learning experience, can we get the slides used in the lecture ?
P
prachi jadhav
5
Good platform to learn
E
Er Komal Gupta
5
very nice understandable....thanku mam
A
Ayush Kumar Tatia
5
Mam genuinely thankyou for making it so good , Bhagwaan aapko bhot aage le jaaye , rich log aapke content dekh ke certificate le , i truly wish 😊, mae hi baad mae pay krunge because i be rich futur😊
Share a personalized message with your friends.