Skip to content

Commit

Permalink
fix: return correct sms otp error (#1351)
Browse files Browse the repository at this point in the history
## What kind of change does this PR introduce?
* see title
  • Loading branch information
kangmingtay authored Dec 18, 2023
1 parent 97b3595 commit 5b06680
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/api/otp.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ func (a *API) SmsOtp(w http.ResponseWriter, r *http.Request) error {
}
mID, serr := a.sendPhoneConfirmation(ctx, tx, user, params.Phone, phoneConfirmationOtp, smsProvider, params.Channel)
if serr != nil {
return badRequestError("Error sending sms OTP: %v", err)
return badRequestError("Error sending sms OTP: %v", serr)
}
messageID = mID
return nil
Expand Down

0 comments on commit 5b06680

Please sign in to comment.