hannahmneal/Front-End-Capstone

Login/Registration

Closed this issue · 0 comments

Given a user wishes to utilize the Game Closet app, the user will be presented with a registration/login screen. Once logged in, the user will only be able to see their own Game Closet dashboard.

  • A login form will be presented to the user. No other information within the app will be accessible to the user without entering a unique user name/password combo into the form.

The form should include:

  • A field for the username
  • A field for the password
  • A "Login" button
  • A "Sign Up" button
  • Both the username and password fields are required.

If the user wishes to sign up as a new user, they may enter their username and name into the respective form fields and click "Sign Up".

  • On form submission, the user input values will be checked against existing database entries to ensure there are no duplicate users
  • If there is a duplicate user, the user will be prompted to try a different combination
  • If there is no existing user, a new user will be created in the database and the login/registration screen will automatically navigate to the user dashboard.

If the user has already created an account and is logging in to the app, they will enter their username and password into the form fields and click "Login".

  • On form submission, the user's form input values will be checked with the database for an existing user.
  • If what the user types into the form fields does not match an existing user, they will be alerted with a message saying "User not found", and prompted to try a different combination
  • If the user exists in the database, the login/registration screen will disappear and the user will be redirected to their dashboard