Untitled

This page contains a form to log into the system with account, to enter correctly, the data is checked if it fits these validations :

<aside> 🔑 User Name : Must be at least 4 character long Password : Must be at least 8 character long, and has upper, lower case and numbers.

</aside>

<aside> 💡 I used a static data for checking the user in src/data file, using it for authentication.

</aside>

users: [
    {
      id: 1,
      username: "admin",
      password: "Admin2000",
      role: "admin",
      fullName: "Admin Account",
    },
  ],

For the remember me Button, when you activate it, it stores a Partial<User> in local storage.

<aside> 💡 Note if you are logged in you shouldn’t go to the login or reach it, this is handled via local storage, when the login page mounts, it checks this specific local storage and redirect the user to /home page.

</aside>