[PR #6377] [MERGED] add mail address change warning for invited accounts #16613

Closed
opened 2026-04-23 07:59:23 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dani-garcia/vaultwarden/pull/6377
Author: @stefan0xC
Created: 10/19/2025
Status: Merged
Merged: 10/21/2025
Merged by: @BlackDex

Base: mainHead: improve-existing-mail-address-change


📝 Commits (1)

  • 3e38958 add mail address change warning for invited accounts

📊 Changes

5 files changed (+69 additions, -3 deletions)

View changed files

📝 src/api/core/accounts.rs (+13 -3)
📝 src/config.rs (+1 -0)
📝 src/mail.rs (+14 -0)
src/static/templates/email/change_email_invited.hbs (+11 -0)
src/static/templates/email/change_email_invited.html.hbs (+30 -0)

📄 Description

add a new mail template to differentiate between existing accounts and only invited accounts, so that they can easier delete an existing placeholder account.

E.g. if an existing user (existing_user@example.com) tried to change their mail to an account that has not registered (invited_user@example.net), invited_user@example.net would get a new warning mail:

fixed_example

If an user account for the new mail already exists (i.e. the account has been registered) they would still get the old warning information because we don't want them to delete their accounts. (If they want that they can easily do that on their own when they have logged in in their account settings page...)


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/dani-garcia/vaultwarden/pull/6377 **Author:** [@stefan0xC](https://github.com/stefan0xC) **Created:** 10/19/2025 **Status:** ✅ Merged **Merged:** 10/21/2025 **Merged by:** [@BlackDex](https://github.com/BlackDex) **Base:** `main` ← **Head:** `improve-existing-mail-address-change` --- ### 📝 Commits (1) - [`3e38958`](https://github.com/dani-garcia/vaultwarden/commit/3e389580a2e51482fcf5d454321a111c7e4eb325) add mail address change warning for invited accounts ### 📊 Changes **5 files changed** (+69 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `src/api/core/accounts.rs` (+13 -3) 📝 `src/config.rs` (+1 -0) 📝 `src/mail.rs` (+14 -0) ➕ `src/static/templates/email/change_email_invited.hbs` (+11 -0) ➕ `src/static/templates/email/change_email_invited.html.hbs` (+30 -0) </details> ### 📄 Description add a new mail template to differentiate between existing accounts and only invited accounts, so that they can easier delete an existing placeholder account. E.g. if an existing user (`existing_user@example.com`) tried to change their mail to an account that has not registered (`invited_user@example.net`), `invited_user@example.net` would get a new warning mail: <img width="871" height="541" alt="fixed_example" src="https://github.com/user-attachments/assets/6db1b99a-ddbb-47fe-86c2-1b9d8e9a6d1f" /> If an user account for the new mail already exists (i.e. the account has been registered) they would still get the old warning information because we don't want them to delete their accounts. (If they want that they can easily do that on their own when they have logged in in their account settings page...) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-23 07:59:23 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vaultwarden#16613