ory / kratos

Next-gen identity server replacing your Auth0, Okta, Firebase with hardened security and PassKeys, SMS, OIDC, Social Sign In, MFA, FIDO, TOTP and OTP, WebAuthn, passwordless and much more. Golang, headless, API-first. Available as a worry-free SaaS with the fairest pricing on the market!
https://www.ory.sh/kratos/?utm_source=github&utm_medium=banner&utm_campaign=kratos
Apache License 2.0
11.05k stars 950 forks source link

Registration flow with an existing email and an insecure password returns only insecure password error #3082

Open maylukas opened 1 year ago

maylukas commented 1 year ago

Preflight checklist

Describe the bug

When submitting a verification flow with an existing email and an insecure password, the flow only returns the error that the password is insecure:

   "id":4000005,
   "text":"The password can not be used because the password has been found in data breaches and must no longer be used.",
   "type":"error",
   "context":{
      "reason":"the password has been found in data breaches and must no longer be used"
   }
}

If the verification flow is submitted with an existing email and a secure but invalid password (does not match the credentials stored) the expected error is returned:

{
   "id":4000007,
   "text":"An account with the same identifier (email, phone, username, ...) exists already.",
   "type":"error",
   "context":{

   }
}

Reproducing the bug

Relevant log output

No response

Relevant configuration

No response

Version

0.11.1

On which operating system are you observing this issue?

None

In which environment are you deploying?

None

Additional Context

No response

dextercodo commented 2 weeks ago

Did you manage to find a solution for this? And if so, you mind shedding some light? Thanks