Skip to content

Implement User Authentication #2

@EricFreitag

Description

@EricFreitag

This ticket will involve implementing User Authentication based on the research you did last week!

  • Step 1: Create a login form based on the Figma designs

image

Note: The current implementation for a login form is stored in forms --> LoginForm.tsx. Feel free to build off of this implemention or overwrite any code that's currently there.
  • Step 2: Create a Token API according to the research you did last week. Determine whether the username & password entered into the login form corresponds to a user account or an admin account when implementing the loginUser function.

  • Step 3: Create a user side to the site that hides anything that should be admin specific - edit/delete options for listings, forms for users/admin/listings, manage profiles section. Replace the "Create New" and "Manage Profiles" links in the Navbar with a button called "Recently Viewed"

image

  • Step 4: Implement the logout button which reroutes the user back to the login page

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions