This commit is contained in:
ThatOneCalculator 2023-04-26 19:58:26 -07:00
parent 36aef5a063
commit e4ca9590bd

View file

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