diff options
author | Puyodead1 <puyodead@proton.me> | 2023-01-19 11:15:12 -0500 |
---|---|---|
committer | Puyodead1 <puyodead@protonmail.com> | 2023-02-23 21:35:51 -0500 |
commit | a47d80b255f1501e39bebd7ad7e80119c8ed1697 (patch) | |
tree | eca3d1ff4a837efb8dfcc1571279c2f72f529e99 /src/util/schemas | |
parent | add missing copyright headers (diff) | |
download | server-a47d80b255f1501e39bebd7ad7e80119c8ed1697.tar.xz |
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
Diffstat (limited to 'src/util/schemas')
-rw-r--r-- | src/util/schemas/VerifyEmailSchema.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/schemas/VerifyEmailSchema.ts b/src/util/schemas/VerifyEmailSchema.ts index fa6a4c0d..d94fbbc1 100644 --- a/src/util/schemas/VerifyEmailSchema.ts +++ b/src/util/schemas/VerifyEmailSchema.ts @@ -17,6 +17,6 @@ */ export interface VerifyEmailSchema { - captcha_key: string | null; + captcha_key?: string | null; token: string; } |