Skip to content
This repository was archived by the owner on Mar 22, 2024. It is now read-only.

Add User Authentication#32

Merged
Aavild merged 5 commits intodevfrom
2-user-authentication-backend
Mar 31, 2022
Merged

Add User Authentication#32
Aavild merged 5 commits intodevfrom
2-user-authentication-backend

Conversation

@Decode84
Copy link
Owner

@Decode84 Decode84 commented Mar 27, 2022

User authentication that can create a user for the database with the following input [Name, Email, Password]. But need to add sessions to the authentication.

  • User can registrate.
  • Users password is encrypted with bcrypt
  • User can authenticate.
  • Regex [a-Z, 1-9]
  • Sessions
  • User can logout.
  • User can't see login page while logged in.
  • User can't see registration page while logged in.

Passport might be an idea later on for some part of the code, but for now this works quite fine.

Added User Authentication but unsure if the session part works. This needs to be looked more at.
Might implement passport later on for some part of the code, but for now this works quite fine.
@Decode84 Decode84 linked an issue Mar 27, 2022 that may be closed by this pull request
@Decode84
Copy link
Owner Author

Du commiter stadig kode der allerede er commitede. :D @Aavild

@Aavild
Copy link
Collaborator

Aavild commented Mar 30, 2022

1eb7a31 er en merge og ikke en commit af kode. Heriblandt var der nogle smart merges. Fjernede kun den forkerte smart merge i 20a7c41

@Decode84
Copy link
Owner Author

New code is being commited over with old code. @Aavild

src/.env.example
src/server.js Line 6

@Aavild Aavild merged commit 231d4b8 into dev Mar 31, 2022
@Aavild Aavild deleted the 2-user-authentication-backend branch March 31, 2022 11:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

User Authentication (Backend)

2 participants