Skip to content

Conversation

@DIPAK-555
Copy link

What

Added minimum and maximum length validation for passwords in the registration and reset password flows.

Why

Passwords previously had no upper bound, allowing extremely long values which could lead to performance issues and potential abuse.
This change aligns the validation with common industry security standards.

Changes

  • Enforced minimum password length of 8 characters
  • Enforced maximum password length of 32 characters
  • Applied validation consistently to register and reset password endpoints
  • Preserved existing password complexity rules (letters + numbers)

Testing

Manually tested using curl:

  • valid password accepted
  • short password rejected
  • long password rejected
  • missing number rejected
  • missing letter rejected

Screenshots

Validation test outputs valid password short password long password missing number missing letter

Closes #302

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

when register i can add password with no max characters

1 participant