feat: login notification via email and ntfy #209

Merged
jmiller merged 1 commits from feat/login-notifications into dev 2026-05-26 16:40:56 +00:00
Owner

Sign-in alerts with IP, user agent, timestamp.

Sign-in alerts with IP, user agent, timestamp.
jmiller added 1 commit 2026-05-26 16:39:59 +00:00
feat: login notification via email and ntfy on successful sign-in
Branch Policy Check / Verify merge target (pull_request) Successful in 1s
PR RC Release / Build RC Release (pull_request) Successful in 2s
25268d7dd7
When a user signs in, sends notifications with username, IP address,
user agent, and timestamp. Notifications go through:
- Email to the user's registered address
- ntfy push to the configured topic

Enabled by default, configurable via app.ini:
  [login_notification]
  ENABLED = true

The notification fires asynchronously (goroutine) so it doesn't
block the login redirect. Hooks into handleSignInFull which is the
single choke point for all auth methods (password, 2FA, OAuth).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
jmiller merged commit bc475c91f6 into dev 2026-05-26 16:40:56 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoGitea#209