mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-11 07:32:57 +03:00
[PR #737] [MERGED] fix: login failures on Postgres when IP is null #648
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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:
main← Head:fix-686-2📝 Commits (1)
b04569dfix: 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.