AjobK / Seaqull

Seaqull programming blog
http://www.seaqull.com
3 stars 0 forks source link

388 verify account v1 #393

Open jerohero opened 2 years ago

jerohero commented 2 years ago

closes #388


What is it supposed to do
Implements the account verification flow, generating a verification link after registering. It creates a verification entity for an account when it is registered, and deletes it when the generated link is visited. The link is functional, but is not sent to the user's email address. A temporary button with the link is added so you can actually verify.


How can we test your branch
DB was updated so do npm run reset first. Register an account, after which "verification email sent" should be shown. Click on the temporary verify button, which should verify your account and sign you in and redirect you to your new profile. If you go to the link after the account has been verified already (or the code is incorrect), a message should appear stating that the code is invalid.


1. General checklist


2. If relevant, front-end checklist


3. If relevant, back-end checklist


4. If relevant, test these browsers

jerohero commented 2 years ago

Just to clarify, this PR does not implement any of the points in the alpha 1 checklist.

image

jerohero commented 2 years ago

New error when trying to log in when the user has not been verified: image