diff --git a/src/forms/AccountSettings.vue b/src/forms/AccountSettings.vue index d2a1643..1401c8f 100644 --- a/src/forms/AccountSettings.vue +++ b/src/forms/AccountSettings.vue @@ -75,7 +75,7 @@ const submitForm = async () => { :placeholder="$t('Name')" v-model="name" minlength="2" - pattern=".{2,}" + pattern="\p{Alpha}{2,}" autofocus required /> diff --git a/src/forms/LoginOrRegister.vue b/src/forms/LoginOrRegister.vue index 0c44ef8..319e8e2 100644 --- a/src/forms/LoginOrRegister.vue +++ b/src/forms/LoginOrRegister.vue @@ -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