-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New user account validations #2037
New user account validations #2037
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leverage HTML form sanitization where possible, validate this does not block existing usernames from forcing to be changed.
Do these rules also apply to API endpoints for users?
Updated backend validations to only validate the username with all lowercase and no spaces when calling the |
allow updating by block name changes to invalid names
* force lowercase and no space for new and edit user modals * edit account modal validations * use pattern for form validation + remove validations from edit user * revert comment deletions * comment fix * update validation message * update regex allow updating by block name changes to invalid names --------- Co-authored-by: timothycarambat <[email protected]>
Pull Request Type
Relevant Issues
resolves #1315
What is in this change?
NewUserModal
,EditUserModal
, andAccountModal
components for these validationsUser
prisma model are updated for these validationsUser
model to prevent forcing users to have to change usernames when updating just their passwordAdditional Information
Developer Validations
yarn lint
from the root of the repo & committed changes