Skip to content

fix: Login anomaly detection & suspicious activity alerts#839

Open
ledgerpilot wants to merge 8 commits intorohitdash08:mainfrom
ledgerpilot:ledgerpilot/fix-124
Open

fix: Login anomaly detection & suspicious activity alerts#839
ledgerpilot wants to merge 8 commits intorohitdash08:mainfrom
ledgerpilot:ledgerpilot/fix-124

Conversation

@ledgerpilot
Copy link
Copy Markdown

Closes #124

What changed

This fix implements login anomaly detection by recording the user's last login IP address and user agent. If a subsequent login occurs from a different IP or user agent, an alert email is simulated.

Files modified

  • packages/backend/app/models.py
  • packages/backend/app/utils/alerts.py
  • packages/backend/app/auth/routes.py
  • packages/backend/tests/test_auth.py

Draft PR — please review before merging.

@ledgerpilot ledgerpilot marked this pull request as ready for review April 9, 2026 16:04
@ledgerpilot ledgerpilot requested a review from rohitdash08 as a code owner April 9, 2026 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Login anomaly detection & suspicious activity alerts

1 participant