mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-11 07:42:58 +03:00
🐛 Bug Report: Cannot set firstName and lastName to 2 character strings #429
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @enquestor on GitHub.
Reproduction steps
https://example.pocket-id.com/settings/admin/usersfirstNameorlastNameto 2 character stringsExpected behavior
Be able to save the
firstNameandlastNamesuccessfully.Actual Behavior
Shows
LastName must be at least 3 characters longerror message.Note that when I set
lastName(orfirstName) to a 1 character string, a red error message would appear under the textbox, however if I enter a 2 character string, the error message is a toast.Thoughts / Others
I think any non-empty string should be allowed in
firstNameandlastName?This validation also causes issues when using non-english characters such as Chinese or Japanese, since many Chinese/Japanese last names are single character.
@enquestor commented on GitHub:
Seems like these lines in
UserCreateDtois the issue:Should be an easy fix, but not sure if this is intended or not.
@stonith404 commented on GitHub:
Thanks for reporting this. This should be fixed in
v0.22.0.