|
@@ -114,22 +114,26 @@
|
|
|
<div v-if="$2fauth.config.proxyAuth" class="notification is-warning has-text-centered" v-html="$t('auth.user_account_controlled_by_proxy')" />
|
|
|
<h4 class="title is-4 has-text-grey-light">{{ $t('settings.profile') }}</h4>
|
|
|
<fieldset :disabled="$2fauth.config.proxyAuth || user.oauth_provider">
|
|
|
- <FormField v-model="formProfile.name" fieldName="name" :fieldError="formProfile.errors.get('name')" label="auth.forms.name" :maxLength="255" autofocus />
|
|
|
- <FormField v-model="formProfile.email" fieldName="email" :fieldError="formProfile.errors.get('email')" inputType="email" label="auth.forms.email" :maxLength="255" autofocus />
|
|
|
- <FormField v-model="formProfile.password" fieldName="password" :fieldError="formProfile.errors.get('password')" inputType="password" label="auth.forms.current_password.label" help="auth.forms.current_password.help" />
|
|
|
+ <FormField v-model="formProfile.name" fieldName="name" :fieldError="formProfile.errors.get('name')" label="auth.forms.name" :maxLength="255" autocomplete="username" autofocus />
|
|
|
+ <FormField v-model="formProfile.email" fieldName="email" :fieldError="formProfile.errors.get('email')" inputType="email" label="auth.forms.email" autocomplete="email" :maxLength="255" autofocus />
|
|
|
+ <FormField v-model="formProfile.password" fieldName="password" :fieldError="formProfile.errors.get('password')" inputType="password" label="auth.forms.current_password.label" autocomplete="current-password" help="auth.forms.current_password.help" />
|
|
|
<FormButtons :isBusy="formProfile.isBusy" caption="commons.update" />
|
|
|
</fieldset>
|
|
|
</form>
|
|
|
<form @submit.prevent="submitPassword" @keydown="formPassword.onKeydown($event)">
|
|
|
+ <input hidden type="text" name="name" :value="formProfile.name" autocomplete="username" />
|
|
|
+ <input hidden type="text" name="email" :value="formProfile.email" autocomplete="email" />
|
|
|
<h4 class="title is-4 pt-6 has-text-grey-light">{{ $t('settings.change_password') }}</h4>
|
|
|
<fieldset :disabled="$2fauth.config.proxyAuth || user.oauth_provider">
|
|
|
- <FormPasswordField v-model="formPassword.password" fieldName="password" :fieldError="formPassword.errors.get('password')" :autocomplete="'new-password'" :showRules="true" label="auth.forms.new_password" />
|
|
|
- <FormPasswordField v-model="formPassword.password_confirmation" :showRules="false" fieldName="password_confirmation" :fieldError="formPassword.errors.get('password_confirmation')" inputType="password" :autocomplete="'new-password'" label="auth.forms.confirm_new_password" />
|
|
|
- <FormField v-model="formPassword.currentPassword" fieldName="currentPassword" :fieldError="formPassword.errors.get('currentPassword')" inputType="password" label="auth.forms.current_password.label" help="auth.forms.current_password.help" />
|
|
|
- <FormButtons :isBusy="formPassword.isBusy" caption="auth.forms.change_password" />
|
|
|
+ <FormPasswordField v-model="formPassword.password" fieldName="password" :fieldError="formPassword.errors.get('password')" idSuffix="ForUpdate" autocomplete="new-password" :showRules="true" label="auth.forms.new_password" />
|
|
|
+ <FormPasswordField v-model="formPassword.password_confirmation" :showRules="false" fieldName="password_confirmation" :fieldError="formPassword.errors.get('password_confirmation')" inputType="password" autocomplete="new-password" label="auth.forms.confirm_new_password" />
|
|
|
+ <FormField v-model="formPassword.currentPassword" fieldName="currentPassword" :fieldError="formPassword.errors.get('currentPassword')" inputType="password" label="auth.forms.current_password.label" autocomplete="current-password" help="auth.forms.current_password.help" />
|
|
|
+ <FormButtons :isBusy="formPassword.isBusy" submitId="btnSubmitChangePwd" caption="auth.forms.change_password" />
|
|
|
</fieldset>
|
|
|
</form>
|
|
|
<form id="frmDeleteAccount" @submit.prevent="submitDelete" @keydown="formDelete.onKeydown($event)">
|
|
|
+ <input hidden type="text" name="name" :value="formProfile.name" autocomplete="username" />
|
|
|
+ <input hidden type="text" name="email" :value="formProfile.email" autocomplete="email" />
|
|
|
<h4 class="title is-4 pt-6 has-text-danger">{{ $t('auth.forms.delete_account') }}</h4>
|
|
|
<div class="field is-size-7-mobile">
|
|
|
<p class="block">{{ $t('auth.forms.delete_your_account_and_reset_all_data')}}</p>
|
|
@@ -137,7 +141,7 @@
|
|
|
<p>{{ $t('auth.forms.deleting_2fauth_account_does_not_impact_provider') }}</p>
|
|
|
</div>
|
|
|
<fieldset :disabled="$2fauth.config.proxyAuth">
|
|
|
- <FormField v-model="formDelete.password" fieldName="password" :fieldError="formDelete.errors.get('password')" inputType="password" autocomplete="new-password" label="auth.forms.current_password.label" help="auth.forms.current_password.help" />
|
|
|
+ <FormField v-model="formDelete.password" fieldName="password" :fieldError="formDelete.errors.get('password')" inputType="password" idSuffix="ForDelete" autocomplete="new-password" label="auth.forms.current_password.label" help="auth.forms.current_password.help" />
|
|
|
<FormButtons :isBusy="formDelete.isBusy" caption="auth.forms.delete_your_account" submitId="btnDeleteAccount" color="is-danger" />
|
|
|
</fieldset>
|
|
|
</form>
|