Coding task · Python course · Module 5: Flask and Web Apps

Protected view

Create a view accessible only to logged-in users.

Task

Write a /dashboard view with the @login_required decorator that displays a greeting for current_user.