@@ -32,6 +32,7 @@ def self.error_codes
3232 mfa_failed : { description : 'Invalid MFA data provided' } ,
3333 mfa_required : { description : 'MFA is required' } ,
3434 invalid_login_data : { description : 'Invalid login data provided' } ,
35+ user_blocked : { description : 'The user is blocked from accessing the application' } ,
3536 totp_secret_already_set : { description : 'This user already has TOTP set up' } ,
3637 invalid_totp_secret : { description : 'The TOTP secret is invalid or cannot be verified' } ,
3738 wrong_totp : { description : 'Invalid TOTP code provided' } ,
@@ -45,6 +46,8 @@ def self.error_codes
4546 invalid_password_repeat : { description : 'The provided password repeat does not match the password' } ,
4647 cannot_modify_admin : { description : 'Only administrators can modify admin status of users' } ,
4748 cannot_modify_own_admin : { description : 'Users cannot modify their own admin status' } ,
49+ cannot_moderate_user : { description : 'Only administrators can modify moderation status of users' } ,
50+ cannot_modify_own_blocked_status : { description : 'Users cannot modify their own blocked status' } ,
4851 user_not_found : { description : 'The user with the given identifier was not found' } ,
4952 invalid_user_identity : { description : 'The user identity is invalid because of active model errors' } ,
5053 invalid_user_session : { description : 'The user session is invalid because of active model errors' } ,
0 commit comments