Question · Python course · Module 5: Flask and Web Apps
The login_required decorator
What does the @login_required decorator do?
Answer options
- Requires login before accessing the view
- Automatically logs in the user
- Creates a login form
- Hashes the user's password
You can check the correct answer by solving this task in the CodeWorlds game.