This commit is contained in:
ThatOneCalculator 2023-04-26 19:58:26 -07:00
parent 8e22a211d1
commit a44fee3aae
No known key found for this signature in database
GPG Key ID: 8703CACD01000000
1 changed files with 1 additions and 3 deletions

View File

@ -7,9 +7,7 @@ export default async (ctx: Koa.Context) => {
const code = body["code"]; const code = body["code"];
const profile = await UserProfiles.findOneBy({ const profile = await UserProfiles.findOneByOrFail({ emailVerifyCode: code });
emailVerifyCode: ctx.params.code,
});
if (profile != null) { if (profile != null) {
ctx.body = "Verify succeeded!"; ctx.body = "Verify succeeded!";