Skip to content

Commit 5039b8d

Browse files
committed
fix: allow additional secret fields when setting two factor in rest-express
1 parent 3bd3fb8 commit 5039b8d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/rest-express/src/endpoints/password/two-factor.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export const twoFactorSecret =
1818
};
1919

2020
export const twoFactorSet = (accountsServer: AccountsServer) => [
21+
body('secret').isObject().notEmpty(),
2122
body('secret.base32').isString().notEmpty(),
2223
body('code').isString().notEmpty(),
2324
async (req: express.Request, res: express.Response) => {

0 commit comments

Comments
 (0)