feat: implement TASK-WP1-04 admin security
This commit is contained in:
@@ -15,6 +15,7 @@ export type RegistrationErrorReason =
|
||||
| "login_registration_required"
|
||||
| "account_suspended"
|
||||
| "login_admin_required"
|
||||
| "admin_not_allowed"
|
||||
| "resend_too_soon"
|
||||
| "too_many_attempts"
|
||||
| "csrf_invalid"
|
||||
@@ -68,6 +69,7 @@ export function registrationFieldError(reason: RegistrationErrorReason) {
|
||||
login_registration_required: { field: "email", message_key: "auth.login.registration_required" },
|
||||
account_suspended: { field: "email", message_key: "auth.account.suspended" },
|
||||
login_admin_required: { field: "email", message_key: "auth.login.admin_required" },
|
||||
admin_not_allowed: { field: "email", message_key: "admin.auth.not_allowed" },
|
||||
resend_too_soon: { field: "verification_code", message_key: "auth.challenge.resend_too_soon" },
|
||||
too_many_attempts: { field: "verification_code", message_key: "auth.challenge.too_many_attempts" },
|
||||
csrf_invalid: { field: "csrf_token", message_key: "auth.csrf.invalid" },
|
||||
|
||||
Reference in New Issue
Block a user