Serializers
OtpSettingsSchema
Schema that validates the fields for the activation of the otp method of a user.
class OtpSettingsSchema(Schema):
otp = fields.Str(required=True)
otpSecret = fields.Str(required=True)
All fields are required.
OtpCodeValidateSchema
Schema that validates the fields to validate the otp code of a user.
class OtpCodeValidateSchema(Schema):
otp = fields.Str(required=True)
All fields are required.
wordsValidateSchema
Schema that validates the fields to validate the recovery words of the otp method of a user.
class wordsValidateSchema(Schema):
words = fields.Str(required=True)
All fields are required.