Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Update identity-ua-service.ts

Daniele618d098cd35
diff --git a/backend/src/services/identity-ua/identity-ua-service.ts b/backend/src/services/identity-ua/identity-ua-service.ts
index eb27a2b7ec..e72be0e146 100644
--- a/backend/src/services/identity-ua/identity-ua-service.ts
+++ b/backend/src/services/identity-ua/identity-ua-service.ts
@@ -113,7 +113,7 @@ export const identityUaServiceFactory = ({
lockout = JSON.parse(lockoutRaw) as LockoutObject;
}
- if (lockout && lockout.lockedOut) {
+ if (lockout && lockout.lockedOut && identityUa.lockoutEnabled) {
throw new UnauthorizedError({
message: "This identity auth method is temporarily locked, please try again later",
detail: {