<form id="passwordform" method="POST" @submit.prevent="changePassword">
<NcPasswordField id="old-pass"
:label="t('settings', 'Current password')"
- :label-visible="true"
name="oldpassword"
:value.sync="oldPass"
autocomplete="current-password"
<NcPasswordField id="new-pass"
:label="t('settings', 'New password')"
- :label-visible="true"
:value.sync="newPass"
:maxlength="469"
autocomplete="new-password"
:value.sync="newUser.id"
:disabled="settings.newUserGenerateUserID"
:label="usernameLabel"
- :label-visible="true"
autocapitalize="none"
autocomplete="off"
autocorrect="off"
data-test="displayName"
:value.sync="newUser.displayName"
:label="t('settings', 'Display name')"
- :label-visible="true"
autocapitalize="none"
autocomplete="off"
autocorrect="off" />
:maxlength="469"
aria-describedby="password-email-hint"
:label="newUser.mailAddress === '' ? t('settings', 'Password (required)') : t('settings', 'Password')"
- :label-visible="true"
autocapitalize="none"
autocomplete="new-password"
autocorrect="off"
:value.sync="newUser.mailAddress"
aria-describedby="password-email-hint"
:label="newUser.password === '' || settings.newUserRequireEmail ? t('settings', 'Email (required)') : t('settings', 'Email')"
- :label-visible="true"
autocapitalize="none"
autocomplete="off"
autocorrect="off"
<div class="field">
<NcTextField :value.sync="localValue"
:label="displayName"
- :label-visible="true"
:placeholder="placeholder"
:type="type"
:maxlength="maxlength"
<NcTextField id="user"
ref="user"
:label="t('core', 'Account name or email')"
- :label-visible="true"
name="user"
:value.sync="user"
:class="{shake: invalidPassword}"
<NcPasswordField id="password"
ref="password"
name="password"
- :label-visible="true"
:class="{shake: invalidPassword}"
:value.sync="password"
:spellchecking="false"
:value="user"
:autocomplete="autoCompleteAllowed ? 'on' : 'off'"
:error="!validCredentials"
- :label-visible="true"
:label="t('core', 'Username or email')"
:placeholder="t('core', 'Username or email')"
:helper-text="!validCredentials ? t('core', 'Your account is not setup for passwordless login.') : ''"
name="user"
autocapitalize="off"
:label="t('core', 'Account name or email')"
- :label-visible="true"
required
@change="updateUsername" />
<LoginButton :value="t('core', 'Reset password')" />