fix: implement missing password validation (#27634)

* fix: validate password presence and requirements

* chore: add error code for invalid passwords

* chore: avoid trimming password

* chore: add test for password validation

* fix: update password to delete user

* fix: create user password following protocol

* test: simplify deleteMeHandler password validation tests

* fix: address coderabbit

* fix: modify login params for failing tests

* fix: failing e2e tests

---------

Co-authored-by: Bandhan Majumder <[email protected]>
This commit is contained in:
Anirban SinghaandBandhan Majumder authored and GitHub committed 2026-06-22 10:37:09 +05:30
1 parent a46d5f8dd4
commit 0d164da8dd
10 files changed
+116 -23

No files matched your search

+1
View File
@@ -17,4 +17,5 @@ export enum ErrorCode {
RateLimitExceeded = "rate-limit-exceeded",
SocialIdentityProviderRequired = "social-identity-provider-required",
UserAccountLocked = "user-account-locked",
PasswordPolicyViolation = "password-policy-violation",
}