From: Matthias Schmidt Date: Sat, 19 Dec 2020 12:16:22 +0000 (+0100) Subject: Add autocomplete support for user password form field X-Git-Tag: 5.4.0_Alpha_1~521^2~10 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=69fe1a550d8d678c87ca0e3c3daea552e318ca23;p=GitHub%2FWoltLab%2FWCF.git Add autocomplete support for user password form field --- diff --git a/com.woltlab.wcf/templates/__userPasswordFormField.tpl b/com.woltlab.wcf/templates/__userPasswordFormField.tpl index 23fe7f1f76..a0a4594f1b 100644 --- a/com.woltlab.wcf/templates/__userPasswordFormField.tpl +++ b/com.woltlab.wcf/templates/__userPasswordFormField.tpl @@ -3,6 +3,7 @@ *}name="{@$field->getPrefixedId()}" {* *}value="{$field->getValue()}" {* *}class="long"{* + *}{if $field->getAutoComplete() !== null} autocomplete="{$field->getAutoComplete()}"{/if}{* *}{if $field->isAutofocused()} autofocus{/if}{* *}{if $field->isRequired()} required{/if}{* *}{if $field->getPlaceholder() !== null} placeholder="{$field->getPlaceholder()}"{/if}{* diff --git a/wcfsetup/install/files/acp/templates/__userPasswordFormField.tpl b/wcfsetup/install/files/acp/templates/__userPasswordFormField.tpl index 23fe7f1f76..a0a4594f1b 100644 --- a/wcfsetup/install/files/acp/templates/__userPasswordFormField.tpl +++ b/wcfsetup/install/files/acp/templates/__userPasswordFormField.tpl @@ -3,6 +3,7 @@ *}name="{@$field->getPrefixedId()}" {* *}value="{$field->getValue()}" {* *}class="long"{* + *}{if $field->getAutoComplete() !== null} autocomplete="{$field->getAutoComplete()}"{/if}{* *}{if $field->isAutofocused()} autofocus{/if}{* *}{if $field->isRequired()} required{/if}{* *}{if $field->getPlaceholder() !== null} placeholder="{$field->getPlaceholder()}"{/if}{* diff --git a/wcfsetup/install/files/lib/system/form/builder/field/user/UserPasswordField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/user/UserPasswordField.class.php index 0dab0ed072..669b068b55 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/user/UserPasswordField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/user/UserPasswordField.class.php @@ -1,8 +1,10 @@