We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bd3fb8 commit 5039b8dCopy full SHA for 5039b8d
packages/rest-express/src/endpoints/password/two-factor.ts
@@ -18,6 +18,7 @@ export const twoFactorSecret =
18
};
19
20
export const twoFactorSet = (accountsServer: AccountsServer) => [
21
+ body('secret').isObject().notEmpty(),
22
body('secret.base32').isString().notEmpty(),
23
body('code').isString().notEmpty(),
24
async (req: express.Request, res: express.Response) => {
0 commit comments