Created the totpSetup validation in the account.ts validation
This commit is contained in:
parent
20cd436321
commit
9db62938b4
@ -10,3 +10,7 @@ export const verificationValidation = Joi.object({
|
|||||||
id: Joi.string().hex().length(24).required(),
|
id: Joi.string().hex().length(24).required(),
|
||||||
code: Joi.number().required()
|
code: Joi.number().required()
|
||||||
});
|
});
|
||||||
|
|
||||||
|
export const totpSetup = Joi.object({
|
||||||
|
code: Joi.number().integer().required()
|
||||||
|
});
|
Loading…
x
Reference in New Issue
Block a user