Skip to content

Commit c599f8d

Browse files
Fix: if default opt is enabled. checking OTP for other users through normal flow.
1 parent b1c2e4a commit c599f8d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/api/api.service.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,12 @@ export class ApiService {
544544
else
545545
verifyOTPResult = {status: SMSResponseStatus.failure}
546546
}
547+
else {
548+
verifyOTPResult = await this.otpService.verifyOTP({
549+
phone: loginDto.loginId,
550+
otp: loginDto.password, // existing OTP
551+
});
552+
}
547553
} else {
548554
verifyOTPResult = await this.otpService.verifyOTP({
549555
phone: loginDto.loginId,

0 commit comments

Comments
 (0)