mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-23 22:40:24 +02:00
added more descriptive test OTP id and failure log message
This commit is contained in:
1 parent
77ac44a49a
commit
2d828ef9eb
3 files changed
+7
-3
No files matched your search
+2
-2
@@ -89,8 +89,8 @@ func SendRecordOTP(app core.App, authRecord *core.Record, otpId string, pass str
|
||||
|
||||
otp, err := e.App.FindOTPById(otpId)
|
||||
if err != nil {
|
||||
e.App.Logger().Error(
|
||||
"Failed to find OTP to update its sentTo field",
|
||||
e.App.Logger().Warn(
|
||||
"Unabled to find OTP to update its sentTo field (either it was already deleted or the id is nonexisting)",
|
||||
"error", err,
|
||||
"otpId", otpId,
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user