mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-03-04 07:18:50 -07:00
fix?
This commit is contained in:
parent
36aef5a063
commit
e4ca9590bd
1 changed files with 1 additions and 3 deletions
|
@ -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!";
|
||||
|
|
Loading…
Add table
Reference in a new issue