Milestone1 Presentation ‐ Login and Create Account - bounswe/bounswe2024group8 GitHub Wiki
Requirement 1: Users shall be able to create an account using their unique email address, unique username, and password.
Requirement 2: Users shall be able to log in using their email address and password.
Scenario 1: Unregistered User Attempts to Log In and Then Registers Successfully
1.1 Login Attempt with Unregistered Email
- Action: Hunter Gatherer, who is not a registered user, attempts to log in.
- Details: He enters his email address
[email protected]and a random passwordPwd.1234. - Outcome: The login fails.
- System Response: An error message displays: "Incorrect email or password."
1.2 Attempt to Create an Account with an Already Taken Username
- Action: Hunter clicks on "Create Account."
- Details: He inputs his email
[email protected], desired usernamehunterg1, and passwordPwd.1234. - Outcome: Registration fails.
- System Response: An error message displays: "Username 'hunterg1' is already in use."
1.3 Successful Account Creation with Unique Username
- Action: Hunter attempts registration again.
- Details: He uses the same email
[email protected], a new usernamehunterg2, and the same passwordPwd.1234. - Outcome: Registration succeeds.
- System Response: A confirmation message displays: "Account created successfully."
1.4 Failed Login Due to Typographical Error in Password
- Action: Hunter tries to log in.
- Details: He enters his email
[email protected]and an incorrect passwordPwd.12345(note the extra '5'). - Outcome: The login fails.
- System Response: An error message displays: "Incorrect email or password."
1.5 Successful Login with Correct Credentials
- Action: Hunter attempts to log in again.
- Details: He uses his email
[email protected]and the correct passwordPwd.1234. - Outcome: Login succeeds.
- System Response: Hunter is redirected to his user dashboard.
Scenario 2: Registered User Attempts Duplicate Account Creation and Then Logs In
2.1 Failed Registration Due to Email Already in Use
- Action: Elena Smith, an existing user, tries to create a new account.
- Details: She enters her email
[email protected], usernameesmith1, and a new password. - Outcome: Registration fails.
- System Response: An error message displays: "Email
[email protected]is already associated with an account."
2.2 Successful Login with Existing Credentials
- Action: Elena decides to log in instead.
- Details: She enters her email
[email protected]and her existing password. - Outcome: Login succeeds.
- System Response: Elena is redirected to her user dashboard.
Scenario 3: Attempt to Register with Invalid Email Format
3.1 Failed Registration Due to Invalid Email
- Action: Olivia Johnson tries to create an account.
- Details: He enters an invalid email
ojohnson.com(missing '@'), usernameojohnson1, and passwordPwd.123. - Outcome: Registration fails.
- System Response: An error message displays: "Please enter a valid email address."