aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2023-10-20 01:54:53 +0200
committerGitHub <noreply@github.com>2023-10-20 01:54:53 +0200
commit8ac6fe8ba45c3d47e984d910e23e5b43c0cef162 (patch)
tree3774a3eedda35f74f649eca7a068cfec43be08c8 /apps
parent06327be68e52fa3f4664fa990a669aab87efd12d (diff)
parent2d6cd78c3299fe343637f08d780ecb2646b33172 (diff)
downloadnextcloud-server-8ac6fe8ba45c3d47e984d910e23e5b43c0cef162.tar.gz
nextcloud-server-8ac6fe8ba45c3d47e984d910e23e5b43c0cef162.zip
Merge pull request #40978 from nextcloud/fix/37092/replace-non-standard-autocorrect-with-spellcheck
HTML Validation: replace non standard `autocorrect` with `spellcheck`
Diffstat (limited to 'apps')
-rw-r--r--apps/settings/src/components/PasswordSection.vue4
-rw-r--r--apps/settings/src/components/PersonalInfo/EmailSection/Email.vue2
-rw-r--r--apps/settings/src/components/PersonalInfo/shared/AccountPropertySection.vue4
-rw-r--r--apps/settings/src/components/Users/NewUserModal.vue8
-rw-r--r--apps/settings/src/components/Users/UserRow.vue3
-rw-r--r--apps/user_ldap/templates/renewpassword.php4
6 files changed, 11 insertions, 14 deletions
diff --git a/apps/settings/src/components/PasswordSection.vue b/apps/settings/src/components/PasswordSection.vue
index aa0c46ec131..931a0f007fe 100644
--- a/apps/settings/src/components/PasswordSection.vue
+++ b/apps/settings/src/components/PasswordSection.vue
@@ -25,7 +25,7 @@
:value.sync="oldPass"
autocomplete="current-password"
autocapitalize="none"
- autocorrect="off" />
+ spellcheck="false" />
<NcPasswordField id="new-pass"
:label="t('settings', 'New password')"
@@ -33,7 +33,7 @@
:maxlength="469"
autocomplete="new-password"
autocapitalize="none"
- autocorrect="off"
+ spellcheck="false"
:check-password-strength="true" />
<NcButton type="primary"
diff --git a/apps/settings/src/components/PersonalInfo/EmailSection/Email.vue b/apps/settings/src/components/PersonalInfo/EmailSection/Email.vue
index 65214707ca3..7b5d4c11028 100644
--- a/apps/settings/src/components/PersonalInfo/EmailSection/Email.vue
+++ b/apps/settings/src/components/PersonalInfo/EmailSection/Email.vue
@@ -31,7 +31,7 @@
:value="email"
:aria-describedby="helperText ? `${inputId}-helper-text` : ''"
autocapitalize="none"
- autocorrect="off"
+ spellcheck="false"
@input="onEmailChange">
<div class="email__actions-container">
diff --git a/apps/settings/src/components/PersonalInfo/shared/AccountPropertySection.vue b/apps/settings/src/components/PersonalInfo/shared/AccountPropertySection.vue
index 59cccc54714..8cf92fe32ed 100644
--- a/apps/settings/src/components/PersonalInfo/shared/AccountPropertySection.vue
+++ b/apps/settings/src/components/PersonalInfo/shared/AccountPropertySection.vue
@@ -35,7 +35,7 @@
rows="8"
autocapitalize="none"
autocomplete="off"
- autocorrect="off"
+ spellcheck="false"
@input="onPropertyChange" />
<input v-else
:id="inputId"
@@ -45,7 +45,7 @@
:value="value"
:aria-describedby="helperText ? `${name}-helper-text` : ''"
autocapitalize="none"
- autocorrect="off"
+ spellcheck="false"
:autocomplete="autocomplete"
@input="onPropertyChange">
diff --git a/apps/settings/src/components/Users/NewUserModal.vue b/apps/settings/src/components/Users/NewUserModal.vue
index a93d3fc329b..ca80ae6d7ec 100644
--- a/apps/settings/src/components/Users/NewUserModal.vue
+++ b/apps/settings/src/components/Users/NewUserModal.vue
@@ -37,7 +37,7 @@
:label="usernameLabel"
autocapitalize="none"
autocomplete="off"
- autocorrect="off"
+ spellcheck="false"
pattern="[a-zA-Z0-9 _\.@\-']+"
required />
<NcTextField class="modal__item"
@@ -46,7 +46,7 @@
:label="t('settings', 'Display name')"
autocapitalize="none"
autocomplete="off"
- autocorrect="off" />
+ spellcheck="false" />
<span v-if="!settings.newUserRequireEmail"
id="password-email-hint"
class="modal__hint">
@@ -62,7 +62,7 @@
:label="newUser.mailAddress === '' ? t('settings', 'Password (required)') : t('settings', 'Password')"
autocapitalize="none"
autocomplete="new-password"
- autocorrect="off"
+ spellcheck="false"
:required="newUser.mailAddress === ''" />
<NcTextField class="modal__item"
data-test="email"
@@ -72,7 +72,7 @@
:label="newUser.password === '' || settings.newUserRequireEmail ? t('settings', 'Email (required)') : t('settings', 'Email')"
autocapitalize="none"
autocomplete="off"
- autocorrect="off"
+ spellcheck="false"
:required="newUser.password === '' || settings.newUserRequireEmail" />
<div class="modal__item">
<!-- hidden input trick for vanilla html5 form validation -->
diff --git a/apps/settings/src/components/Users/UserRow.vue b/apps/settings/src/components/Users/UserRow.vue
index 2e25c3e384c..d62780d2b61 100644
--- a/apps/settings/src/components/Users/UserRow.vue
+++ b/apps/settings/src/components/Users/UserRow.vue
@@ -51,7 +51,6 @@
:value.sync="editedDisplayName"
autocapitalize="off"
autocomplete="off"
- autocorrect="off"
spellcheck="false"
@trailing-button-click="updateDisplayName" />
</template>
@@ -82,7 +81,6 @@
:value.sync="editedPassword"
autocapitalize="off"
autocomplete="new-password"
- autocorrect="off"
required
spellcheck="false"
type="password"
@@ -105,7 +103,6 @@
:value.sync="editedMail"
autocapitalize="off"
autocomplete="email"
- autocorrect="off"
spellcheck="false"
type="email"
@trailing-button-click="updateEmail" />
diff --git a/apps/user_ldap/templates/renewpassword.php b/apps/user_ldap/templates/renewpassword.php
index 51cf898e133..5b51c5fc6d8 100644
--- a/apps/user_ldap/templates/renewpassword.php
+++ b/apps/user_ldap/templates/renewpassword.php
@@ -30,7 +30,7 @@ style('user_ldap', 'renewPassword');
<p class="grouptop">
<input type="password" id="oldPassword" name="oldPassword"
placeholder="<?php echo $l->t('Current password');?>"
- autofocus autocomplete="off" autocapitalize="off" autocorrect="off" required/>
+ autofocus autocomplete="off" autocapitalize="off" spellcheck="false" required/>
<label for="oldPassword" class="infield"><?php p($l->t('Current password')); ?></label>
</p>
@@ -39,7 +39,7 @@ style('user_ldap', 'renewPassword');
<label id="newPassword-label" for="newPassword" class="infield"><?php p($l->t('New password')); ?></label>
<input type="password" id="newPassword" name="newPassword"
placeholder="<?php echo $l->t('New password');?>"
- data-typetoggle="#personal-show" autofocus autocomplete="off" autocapitalize="off" autocorrect="off" required/>
+ data-typetoggle="#personal-show" autofocus autocomplete="off" autocapitalize="off" spellcheck="false" required/>
</p>
<input type="submit" id="submit" class="login primary icon-confirm-white" value="<?php p($l->t('Renew password')); ?>"/>