Skip to content

Commit

Permalink
feat: made input name more restrictive
Browse files Browse the repository at this point in the history
  • Loading branch information
mwargan committed Apr 25, 2024
1 parent f3803c1 commit e830ab3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/forms/AccountSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const submitForm = async () => {
:placeholder="$t('Name')"
v-model="name"
minlength="2"
pattern=".{2,}"
pattern="\p{Alpha}{2,}"
autofocus
required
/>
Expand Down
2 changes: 1 addition & 1 deletion src/forms/LoginOrRegister.vue
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ const goBack = async () => {
:placeholder="$t('Name')"
v-model="authForm.name"
minlength="2"
pattern=".{2,}"
pattern="\p{Alpha}{2,}"
autocomplete="given-name"
autofocus
required
Expand Down

0 comments on commit e830ab3

Please sign in to comment.