|
@@ -115,12 +115,15 @@
|
|
|
outlined
|
|
outlined
|
|
|
class="password-input"
|
|
class="password-input"
|
|
|
placeholder="گذرواژه خود را وارد کنید"
|
|
placeholder="گذرواژه خود را وارد کنید"
|
|
|
|
|
+ :type="visibilityIcon === 'visibility' ? 'password' : 'text'"
|
|
|
@keydown.enter="verify">
|
|
@keydown.enter="verify">
|
|
|
<template v-slot:prepend>
|
|
<template v-slot:prepend>
|
|
|
- <q-icon name="person" />
|
|
|
|
|
|
|
+ <q-icon name="lock_open" />
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:append>
|
|
<template v-slot:append>
|
|
|
- <q-icon name="person" />
|
|
|
|
|
|
|
+ <q-icon :name="visibilityIcon"
|
|
|
|
|
+ class="cursor-pointer"
|
|
|
|
|
+ @click="toggleVisibilityIcon" />
|
|
|
</template>
|
|
</template>
|
|
|
</q-input>
|
|
</q-input>
|
|
|
|
|
|
|
@@ -163,6 +166,7 @@ export default {
|
|
|
sendOtpLoading: false,
|
|
sendOtpLoading: false,
|
|
|
timerEnded: false,
|
|
timerEnded: false,
|
|
|
loading: false,
|
|
loading: false,
|
|
|
|
|
+ visibilityIcon: 'visibility',
|
|
|
bannerMessage: 'ثبت نام در سامانه',
|
|
bannerMessage: 'ثبت نام در سامانه',
|
|
|
registerStep: 'getUsername',
|
|
registerStep: 'getUsername',
|
|
|
username: null,
|
|
username: null,
|
|
@@ -197,6 +201,9 @@ export default {
|
|
|
this.setRegisterStep('getUsername')
|
|
this.setRegisterStep('getUsername')
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ toggleVisibilityIcon () {
|
|
|
|
|
+ this.visibilityIcon = this.visibilityIcon === 'visibility' ? 'visibility_off' : 'visibility'
|
|
|
|
|
+ },
|
|
|
onStopTimer () {
|
|
onStopTimer () {
|
|
|
this.timerEnded = true
|
|
this.timerEnded = true
|
|
|
},
|
|
},
|