Skip to content

Commit 0b013a6

Browse files
chore: update message
Co-authored-by: Mathias Fredriksson <mafredri@gmail.com>
1 parent 20b83b4 commit 0b013a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/userauth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ func (api *API) postChangePasswordWithOneTimePasscode(rw http.ResponseWriter, r
383383

384384
now := dbtime.Now()
385385
if !equal || now.After(user.OneTimePasscodeExpiresAt.Time) {
386-
logger.Warn(ctx, "password reset attempted with invalid one-time passcode", slog.F("email", req.Email))
386+
logger.Warn(ctx, "password reset attempted with invalid or expired one-time passcode", slog.F("email", req.Email))
387387
httpapi.Write(ctx, rw, http.StatusBadRequest, codersdk.Response{
388388
Message: "Incorrect email or one-time passcode.",
389389
})

0 commit comments

Comments
 (0)