Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.

Basic Authentication Implementation #10

Merged
merged 22 commits into from Aug 18, 2022
Merged

Basic Authentication Implementation #10

merged 22 commits into from Aug 18, 2022

Conversation

haIIux
Copy link
Collaborator

@haIIux haIIux commented Aug 18, 2022

Introduces authentication using basic methods (email & password).

With this PR users can do the following...

  • Sign up w/ a email and password which gets hashed through Bcrypt and saved in the Users table.
  • Login using that email and password which will return their user account from the Users table.

…ed the User migration to require the email to be unique so we cannot have any duplicates.
…d with a signup function. Updated User model to use passwordHash rather then password.
…ut of the UserController and began creating the login function.
…ed the User migration to require the email to be unique so we cannot have any duplicates.
…d with a signup function. Updated User model to use passwordHash rather then password.
…ut of the UserController and began creating the login function.
@haIIux haIIux requested a review from 0xLeif August 18, 2022 02:11
@haIIux haIIux added the enhancement New feature or request label Aug 18, 2022
Sources/App/routes.swift Outdated Show resolved Hide resolved
@haIIux haIIux merged commit d932ab1 into master Aug 18, 2022
@haIIux haIIux deleted the auth-setup branch August 18, 2022 02:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants