Skip to content

Commit

Permalink
fix: allow additional secret fields when setting two factor in rest-e…
Browse files Browse the repository at this point in the history
…xpress
  • Loading branch information
darkbasic committed Nov 23, 2023
1 parent 3bd3fb8 commit 5039b8d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/rest-express/src/endpoints/password/two-factor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export const twoFactorSecret =
};

export const twoFactorSet = (accountsServer: AccountsServer) => [
body('secret').isObject().notEmpty(),
body('secret.base32').isString().notEmpty(),
body('code').isString().notEmpty(),
async (req: express.Request, res: express.Response) => {
Expand Down

0 comments on commit 5039b8d

Please sign in to comment.