Skip to content

Conversation

@Brano5
Copy link
Collaborator

@Brano5 Brano5 commented Jan 7, 2026

This pull request updates the user management form validation logic in UserManagement.razor to improve password handling and input validation. The most notable changes are the introduction of custom validation for password fields and the removal of the minimum password length requirement.

Validation improvements:

  • The InputModel class now implements IValidatableObject, allowing for custom validation logic.
  • Custom validation ensures that the "Confirm new password" field is only required and compared when a new password is provided, giving more precise feedback to users.

Password requirements adjustment:

  • The minimum length restriction for the "New password" field has been removed; only a maximum length of 100 characters is now enforced.
  • The [Compare] attribute for confirming the new password has been removed in favor of the new custom validation logic.

delete minLengt for password
@Brano5 Brano5 requested review from PTKu and kuh0005 January 7, 2026 11:02
@Brano5 Brano5 self-assigned this Jan 7, 2026
@PTKu PTKu merged commit 2a24c7b into dev Jan 7, 2026
1 of 2 checks passed
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.

4 participants