-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Problem Description
When a user wants to log in, the user has to click on the "Log in" button displayed on the Sign Up View. The email address and password input from the user has to be validated in the client.
If the input meets the acceptance criteria, the data will be sent to the server.
If any check fails, a user friendly message will be displayed in accordance with the error. As an example: If username/email address is wrong: "No account with this email exists. Try again."
If user account exists the user will be sent to the Home View after logging in.
Required Changes
- What needs to be changed?:
- create methods in client to validate user input, create a pop up message if the check fails
- What is the goal? :
- The goal is to send an existing user to the Home page after logging in.
Acceptance Criteria
- The email address must be in a valid format (e.g. abc@abc)
- The password should not be less than 8 characters in length
- The password should contain at least one uppercase character
- The password should contain at least one number
- The password should contain at least one special character
- There is an existing account with the given email address and password.
Dependencies
-Backend:
Interacts with the authenticateUser method in AuthController, which sends a POST request to the API with the given JSON object
JSON object sent to the API:
{
email: String,
password: String
}
-Database:
Check for existing email address and correct password.
Sub-issues
Metadata
Metadata
Assignees
Labels
Type
Projects
Status