You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when registering a username, if you enter exactly 6 characters you will get back an error Only subscribers can have a username shorter than 6 characters
technically 6 characters is not shorter than 6 characters, and based on the error message its safe to assume 6 characters should be accepted
when validating the username we check if username.length <= 6 meaning only 7 or more characters will be true
Issue Description
when registering a username, if you enter exactly 6 characters you will get back an error
Only subscribers can have a username shorter than 6 characters
technically 6 characters is not shorter than 6 characters, and based on the error message its safe to assume 6 characters should be accepted
when validating the username we check if
username.length <= 6
meaning only 7 or more characters will be truethe check is here:
documenso/packages/trpc/server/auth-router/router.ts
Line 28 in 3b8b87a
Steps to Reproduce
signup, enter a 6 character string as username
Expected Behavior
for 6 character strings to be accepted
Current Behavior
6 character strings are rejected
Screenshots (optional)
No response
Operating System [e.g., Windows 10]
No response
Browser [e.g., Chrome, Firefox]
No response
Version [e.g., 2.0.1]
No response
Please check the boxes that apply to this issue report.
The text was updated successfully, but these errors were encountered: