[PR #737] [MERGED] fix: login failures on Postgres when IP is null #648

Closed
opened 2025-10-09 16:54:26 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/pocket-id/pocket-id/pull/737
Author: @ItalyPaleAle
Created: 7/9/2025
Status: Merged
Merged: 7/9/2025
Merged by: @kmendell

Base: mainHead: fix-686-2


📝 Commits (1)

  • b04569d fix: login failures on Postgres when IP is null

📊 Changes

3 files changed (+11 additions, -8 deletions)

View changed files

📝 backend/internal/middleware/rate_limit.go (+1 -1)
📝 backend/internal/service/audit_log_service.go (+9 -4)
📝 backend/internal/service/user_service.go (+1 -3)

📄 Description

fixes #686 (for real)

The fix in #695 was not complete. It allowed the entry to be stored in the DB, but still caused failures when reading. This completes the fix.

Also fixes: authenticating with a one-time code did not create a log entry when the IP is empty


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/pocket-id/pocket-id/pull/737 **Author:** [@ItalyPaleAle](https://github.com/ItalyPaleAle) **Created:** 7/9/2025 **Status:** ✅ Merged **Merged:** 7/9/2025 **Merged by:** [@kmendell](https://github.com/kmendell) **Base:** `main` ← **Head:** `fix-686-2` --- ### 📝 Commits (1) - [`b04569d`](https://github.com/pocket-id/pocket-id/commit/b04569dafd9eea5c61a1f81eaffb6b35afe910e8) fix: login failures on Postgres when IP is null ### 📊 Changes **3 files changed** (+11 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `backend/internal/middleware/rate_limit.go` (+1 -1) 📝 `backend/internal/service/audit_log_service.go` (+9 -4) 📝 `backend/internal/service/user_service.go` (+1 -3) </details> ### 📄 Description fixes #686 (for real) The fix in #695 was not complete. It allowed the entry to be stored in the DB, but still caused failures when reading. This completes the fix. Also fixes: authenticating with a one-time code did not create a log entry when the IP is empty --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2025-10-09 16:54:26 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pocket-id-pocket-id-2#648