# Part 9 - Authentication

  • Update navigation component
    • Links to register and login pages
    • Dropdown with
      • Initials of logged-in user
      • Name of logged-in user
      • Link to dashboard
      • Update profile
      • Logout
  • Use studentadministration layout on
    • Authentication pages
    • Dashboard page
    • Profile page
  • Result:

Login page with navigation

  • Update logo on authentication pages to Thomas More logo
  • Result:

Register page

  • Protect routes to dashboard and profile so only authenticated users can visit them
    • Redirect others to the login page
    • Make sure they are invisible in the navigation
  • Result navigation of guest

Navigation visitor

  • Result navigation of logged-in user

Navigation authenticated user

  • Make admin middleware, to be used later
  • Make sure only active users have access to the authentication pages
  • Result:

Inactive account notification

Last Updated: 11/28/2022, 8:57:40 PM