Feat(Chore, Fix): Refractor, Half Baked Deletion + Admin Privilege
Refractor Codes into sub file/folders Admin can remove users'/members mfa/2fa, unlink account from oauth provider Admin can add/reset password Different Email (OIDC + Manual)-Same Account; (Block Linking and authorize if available)
This commit is contained in:
@@ -113,7 +113,8 @@ class TOTPVerifySchema(Schema):
|
||||
class TOTPDisableSchema(Schema):
|
||||
"""Schema for disabling TOTP."""
|
||||
|
||||
password = fields.Str(required=True, validate=validate.Length(min=1))
|
||||
# Password is optional: OAuth-only users have no password and skip verification.
|
||||
password = fields.Str(load_default=None, allow_none=True)
|
||||
|
||||
|
||||
class TOTPRegenerateBackupCodesSchema(Schema):
|
||||
|
||||
Reference in New Issue
Block a user