password setting row
This commit is contained in:
@@ -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: '',
|
||||
|
||||
Reference in New Issue
Block a user