Created the totpSetup validation in the account.ts validation

This commit is contained in:
Mathias Wagner 2023-01-21 13:27:48 +01:00
parent 20cd436321
commit 9db62938b4
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

@ -10,3 +10,7 @@ export const verificationValidation = Joi.object({
id: Joi.string().hex().length(24).required(),
code: Joi.number().required()
});
export const totpSetup = Joi.object({
code: Joi.number().integer().required()
});