Skip to content

Server Login and Register #6

@MichaelEdwardBlack

Description

@MichaelEdwardBlack

Server

  • Login Handler
    • Check if username in database
    • Hash plain text password, append salt, and check if matches database
    • Return appropriate response and code
  • Register Handler
    • Check if username already exists
    • Check if email is valid
    • Create user
    • Return auth token

Things to consider
We will need to add auth tokens to the user database.

  • Do we want to make JWT tokens?
  • Do we want multiple tokens with expiration dates or just one single token with expiration?
  • How long should the token last for?
  • How do we validate email? Regex or sending a confirmation email?

Metadata

Metadata

Assignees

No one assigned

    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