summary refs log tree commit diff
path: root/src/api/routes/users/@me/mfa/totp
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2022-08-20 03:19:35 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2022-08-20 03:25:08 +0200
commit363d9887cf4956f566485d872f9ba51155198a6f (patch)
treec3fdbc27ea19231d61f0d9ee314f5897d82852c5 /src/api/routes/users/@me/mfa/totp
parentMake canvas optional (diff)
downloadserver-363d9887cf4956f566485d872f9ba51155198a6f.tar.xz
Fix merge conflicts
Diffstat (limited to 'src/api/routes/users/@me/mfa/totp')
-rw-r--r--src/api/routes/users/@me/mfa/totp/enable.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/api/routes/users/@me/mfa/totp/enable.ts b/src/api/routes/users/@me/mfa/totp/enable.ts
index 413291b8..a38a133a 100644
--- a/src/api/routes/users/@me/mfa/totp/enable.ts
+++ b/src/api/routes/users/@me/mfa/totp/enable.ts
@@ -2,6 +2,7 @@ import { BackupCode, Config, generateMfaBackupCodes, generateToken, TotpEnableSc
 import { Request, Response, Router } from "express";
 import { HTTPError } from "lambert-server";
 import { verifyToken } from 'node-2fa';
+import { route } from '@fosscord/api';
 
 let bcrypt: any;
 try {
@@ -51,4 +52,4 @@ router.post("/", route({ body: "TotpEnableSchema" }), async (req: Request, res:
 	});
 });
 
-export default router;
\ No newline at end of file
+export default router;