Skip to content

Commit

Permalink
Fix: if default opt is enabled. checking OTP for other users through …
Browse files Browse the repository at this point in the history
…normal flow.
  • Loading branch information
Amruth-Vamshi authored Mar 13, 2024
1 parent b1c2e4a commit c599f8d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/api/api.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,12 @@ export class ApiService {
else
verifyOTPResult = {status: SMSResponseStatus.failure}
}
else {
verifyOTPResult = await this.otpService.verifyOTP({
phone: loginDto.loginId,
otp: loginDto.password, // existing OTP
});
}
} else {
verifyOTPResult = await this.otpService.verifyOTP({
phone: loginDto.loginId,
Expand Down

0 comments on commit c599f8d

Please sign in to comment.