Skip to content

Create Login Functionality #2

@andysterks

Description

@andysterks

User Story

A user will need to be able to open up the app in the browser (/), enter their username & password and be redirected to the home screen (/home).

If the user is logged in and opens up the app in the browser (/) the user should be redirected to the home screen (/home);

If the user opens up the app in the browser at the home screen (/home) and they are not logged in they should be redirected to the root url (/).

Technical Details

  • Uses JWT
  • Stores JWT in an HTTP Only cookie
  • Cookie name will be sdmm-fc-sid

Things to keep in mind

  • You have creative freedom to design the login form however you'd like
  • authController.js has much if not all of the logic setup for an HTTP Only cookie
  • Include client-side validation
  • An error message should pop up if wrong username/password (error message should be generated server-side)

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions