mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 01:35:54 +03:00
[PR #323] [MERGED] Send email notifications when invitations are accepted/confirmed #2707
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#2707
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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/dani-garcia/vaultwarden/pull/323
Author: @njfox
Created: 1/3/2019
Status: ✅ Merged
Merged: 1/6/2019
Merged by: @dani-garcia
Base:
master← Head:invite_accepted_email📝 Commits (6)
43eb064Replace invite/reinvite email functions with generic send_email736c0e6Send emails to inviters/invitees when invites are accepted/confirmedcec28a8Update admin page to work with new invitation flow2f5bdc2Fix formatting and add vault link to notification emails7db66f7Refactor invited_by_email check0a74e79Refactor generate_invite_claims, make org_name and org_id optional📊 Changes
4 files changed (+141 additions, -70 deletions)
View changed files
📝
src/api/admin.rs(+8 -2)📝
src/api/core/organizations.rs(+50 -40)📝
src/auth.rs(+22 -2)📝
src/mail.rs(+61 -26)📄 Description
This PR sends email notifications to users when their invitee accepts an invitation so they know when to confirm them. It also sends an email to the invitee when they are confirmed, which is the behavior indicated by the web vault when they call the /accept endpoint.
Additionally, I've replaced the specific
send_invitefunction with a generic email sending function. This requires the subject and body to be formatted by the caller instead of the callee, which I think offers some flexibility for sending many different types of email, but I am open to discussion on whether we want to keep this approach.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.