Summary:

Multi-Tenant Application:

Quick Certify is going to be a multi-tenant application. When a new signup happens, it creates a new organisation as well a new super Admin. That super Admin can then add more people into that account

  1. This super admin can now log in to the account using the login screen by entering a username and password.
  2. The super admin will add team members from the “Add Member” screen by filling in the details of the user which then sends an invitation to the user. When the user accepts the invitation, the user is asked to set a password for his account. User can then log in using his email and password.

Note: In the future, onboarding might get complicated with SSO, Invite Users, and Login with the best Talent button or any other tools we are going to build in the future. But right now, we are keeping this super simple to get going. We do not need to over-engineer login/signup at the moment, nor do we need to build the features in advance. Let’s keep it super simple and allow login with user email and password once they accept the invitation.

User Story 1: An Active user should be able to log in using email and password.

Summary

As a user, I should be able to log in to the account with an email and password.

Acceptance Criteria

  1. An Active User should be able to login with correct username and password. Inactive/archived users can not login and are shown error at the top of login screen telling them “Your account is not active yet. Please contact support or your organisation admin to proceed further.
  2. Once a user is logged in, we need to save cookies to ensure he remains logged in until unless signed out.

Validations

  1. Both username and password fields are required to log in.
  2. Only active users will be able to log in
  3. If the user doesn’t exist in the database, they will not be able to log in

Errors

  1. When there are errors on email/password field, highlight the field in red border along with error message on the bottom of the input field. Use default Flowbite error views.