pukaad-ui-lib 1.272.0 → 1.273.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.json
CHANGED
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
mode="secure" @complete="(data) => handleComplete(modal.key, data)"
|
|
4
4
|
:confirmed-text="isLastStep ? '\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19' : '\u0E16\u0E31\u0E14\u0E44\u0E1B'" @close="isOpen = false" v-model="modalStates[modal.key]"
|
|
5
5
|
:request-path="modal.key === 'phoneOTP' ? '/otp/phone-request' : void 0"
|
|
6
|
-
:verify-path="modal.key === 'phoneOTP' ? '/otp/phone-verify' : void 0"
|
|
7
|
-
/>
|
|
6
|
+
:verify-path="modal.key === 'phoneOTP' ? '/otp/phone-verify' : void 0" />
|
|
8
7
|
</template>
|
|
9
8
|
|
|
10
9
|
<script setup>
|
|
@@ -119,6 +118,22 @@ const handleComplete = (key, data) => {
|
|
|
119
118
|
return;
|
|
120
119
|
}
|
|
121
120
|
}
|
|
121
|
+
if (props.state === "reset-password") {
|
|
122
|
+
if (key === "password") {
|
|
123
|
+
if (props.twoFaEnabled) {
|
|
124
|
+
modalStates.twoFa = true;
|
|
125
|
+
} else {
|
|
126
|
+
isLastStep.value = true;
|
|
127
|
+
modalStates.passwordNew = true;
|
|
128
|
+
}
|
|
129
|
+
} else if (key === "twoFa") {
|
|
130
|
+
isLastStep.value = true;
|
|
131
|
+
modalStates.passwordNew = true;
|
|
132
|
+
} else if (key === "passwordNew") {
|
|
133
|
+
isOpen.value = false;
|
|
134
|
+
emit("complete", "reset-password");
|
|
135
|
+
}
|
|
136
|
+
}
|
|
122
137
|
};
|
|
123
138
|
const onEnabled2FA = async (token) => {
|
|
124
139
|
try {
|