Skip to content

CLIENT - Validate inputs & create request when signing up #2

@lindadqd

Description

@lindadqd

Problem Description

When a new user wants to sign up, 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. Validation will happen on the server as well to check for duplicate emails.

If any check fails, a user friendly message will be displayed in accordance with the error. As an example: If username/email address already in use: "Email already exists. If account already exist try to log in, or change email.

Required Changes

  • What needs to be changed?:
  1. create methods in client to validate user input, create a pop up message if the check fails
  2. create new method in server to check for duplicate email
  • What is the goal? : create a new user if input is valid and send user to email-verification screen. Display a message if input is invalid.

Acceptance Criteria

  • The email address must not already be in use
  • 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

Dependencies

-Backend:

Json object sent to the API:
{
email: String,
password: String
}

-Database:
Check for duplicate emails

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions