continue work at dat lat
This commit is contained in:
1 parent
0125a020a0
commit
b9c745c17c
8 files changed
+122
-31
No files matched your search
+5
-1
@@ -131,7 +131,11 @@ func VerifyOTP(otpInfo *models.OTPVerify, redisOTP models.RedisOTP, w http.Respo
|
||||
|
||||
if isOTPMatch != true {
|
||||
fmt.Println("Internal log: OTP is not match")
|
||||
_ = WriteJSON(w, http.StatusBadRequest, "OTP is not match")
|
||||
_ = WriteJSON(w, http.StatusBadRequest, models.ErrorAPI{
|
||||
Errors: []string{"OTP is not match"},
|
||||
Message: "OTP is not match",
|
||||
Type: "OTP",
|
||||
})
|
||||
}
|
||||
fmt.Println("isOTPMatch: ", isOTPMatch)
|
||||
return isOTPMatch
|
||||
|
||||
Reference in new issue
Block a user