password setting row

This commit is contained in:
negue
2022-11-16 01:44:50 +01:00
parent 5fd5e6275a
commit fdbc2c0eee
8 changed files with 169 additions and 15 deletions
@@ -4,7 +4,10 @@
<div class="settings-label">
{{ $t(customLabel ?? "password") }}
</div>
<div class="forgot-password">
<div
v-if="forgotPassword"
class="forgot-password"
>
<a
class="edit-link"
@click.prevent=""
@@ -20,7 +23,7 @@
<input
v-model="currentPassword"
class="form-control"
:placeholder="$t('password')"
:placeholder="$t(customLabel ?? 'password')"
type="text"
@keyup="$emit('passwordValue', currentPassword)"
>
@@ -30,9 +33,13 @@
</template>
<script>
// TODO change the authForm.vue to accept a query param so that it switches automically to
// "forgot password" mode
export default {
name: 'CurrentPasswordInput',
props: ['customLabel'],
props: ['customLabel', 'showForgetPassword'],
data () {
return {
currentPassword: '',