diff options
Diffstat (limited to 'src/api/routes/auth/verify/view-backup-codes-challenge.ts')
-rw-r--r-- | src/api/routes/auth/verify/view-backup-codes-challenge.ts | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/api/routes/auth/verify/view-backup-codes-challenge.ts b/src/api/routes/auth/verify/view-backup-codes-challenge.ts index 36bfeb0c..24de8ec5 100644 --- a/src/api/routes/auth/verify/view-backup-codes-challenge.ts +++ b/src/api/routes/auth/verify/view-backup-codes-challenge.ts @@ -1,13 +1,9 @@ import { Router, Request, Response } from "express"; import { route } from "@fosscord/api"; -import { FieldErrors, User } from "@fosscord/util"; +import { FieldErrors, User, BackupCodesChallengeSchema } from "@fosscord/util"; import bcrypt from "bcrypt"; const router = Router(); -export interface BackupCodesChallengeSchema { - password: string; -} - router.post("/", route({ body: "BackupCodesChallengeSchema" }), async (req: Request, res: Response) => { const { password } = req.body as BackupCodesChallengeSchema; |