Email verification works
- Added /auth/verify to authenticated route whitelist
- Updated /auth/verify to properly mark a user as verified, return a response, and fix expiration time check
- Implemented /auth/verify/resend
- Moved verification email sending to a helper method
- Fixed VerifyEmailSchema requiring captcha_key
1 parent cc6bf06 commit a47d80b255f1501e39bebd7ad7e80119c8ed1697
@Puyodead1 Puyodead1 authored on 19 Jan 2023
Puyodead1 committed on 24 Feb 2023
Showing 7 changed files
View
src/api/middlewares/Authentication.ts
View
src/api/routes/auth/verify/index.ts
View
src/api/routes/auth/verify/resend.ts 0 → 100644
View
src/util/entities/User.ts
View
src/util/schemas/VerifyEmailSchema.ts
View
src/util/util/Email.ts
View
src/util/util/Token.ts