Skip to content

feat(auth): email the account owner when the master password changes - #112

Merged
kipavy merged 1 commit into
mainfrom
feat/password-changed-email
Oct 14, 2026
Merged

kipavy merged 1 commit into
mainfrom
feat/password-changed-email

Conversation

@kipavy

@kipavy kipavy commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

After a successful PUT /v1/auth/password, the server emails the account owner. The email says the master password changed and when, and points to contact@voltius.app if they did not do it.

The update now returns the email address and the undeliverable flag with RETURNING, so no second query is needed. Sending runs in a spawned task, so the response never waits on Resend. Undeliverable addresses are skipped. A failed send is only logged.

Why: VoltiusApp/voltius#629 lets a signed-in device change the password after an OS check (Windows Hello, Touch ID, polkit, Android biometrics) instead of the current password. The owner should hear about a change they did not make. This also covers changes made from the portal.

Without RESEND_API_KEY (self-hosted, tests) send_via_resend logs and returns, as it does for the other emails.

The existing update_password tests cover the query change. The full suite passes and clippy is clean.

A device that is signed in can now change the password after an OS
check, so the owner needs to hear about a change they did not make.
@kipavy
kipavy merged commit afe9104 into main Oct 14, 2026
1 check passed
@kipavy
kipavy deleted the feat/password-changed-email branch October 14, 2026 19:13
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.

1 participant