[PR #308] [MERGED] Fix email invitations for existing users and update README #2702

Closed
opened 2026-03-03 08:36:35 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dani-garcia/vaultwarden/pull/308
Author: @njfox
Created: 12/23/2018
Status: Merged
Merged: 12/23/2018
Merged by: @dani-garcia

Base: masterHead: invite_existing_user_fix


📝 Commits (3)

  • b0ac640 Use JWT to validate existing user invites
  • cb78ba9 Document domain/email invitation requirements
  • e3395ee Mention that invite links are valid for 5 days only

📊 Changes

2 files changed (+21 additions, -13 deletions)

View changed files

📝 README.md (+11 -0)
📝 src/api/core/organizations.rs (+10 -13)

📄 Description

This PR updates the invitation /accept logic to rely on JWT validation for inviting existing users to new organizations. Previously, the invitations SQLite table was used, which resulted in a bug when an existing user was invited to join an organization because no invitation was created.

I've also updated the README to document the new functionality surrounding email invitations and how it's necessary to set the DOMAIN configuration option so that links are generated correctly.


🔄 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/308 **Author:** [@njfox](https://github.com/njfox) **Created:** 12/23/2018 **Status:** ✅ Merged **Merged:** 12/23/2018 **Merged by:** [@dani-garcia](https://github.com/dani-garcia) **Base:** `master` ← **Head:** `invite_existing_user_fix` --- ### 📝 Commits (3) - [`b0ac640`](https://github.com/dani-garcia/vaultwarden/commit/b0ac640d8b7150ba98ef20acd9fa695764440088) Use JWT to validate existing user invites - [`cb78ba9`](https://github.com/dani-garcia/vaultwarden/commit/cb78ba9bb2c8c97643e85085790fa89e9be89eab) Document domain/email invitation requirements - [`e3395ee`](https://github.com/dani-garcia/vaultwarden/commit/e3395ee91078a8568bf0b09fb159115ca19211e1) Mention that invite links are valid for 5 days only ### 📊 Changes **2 files changed** (+21 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+11 -0) 📝 `src/api/core/organizations.rs` (+10 -13) </details> ### 📄 Description This PR updates the invitation /accept logic to rely on JWT validation for inviting existing users to new organizations. Previously, the invitations SQLite table was used, which resulted in a bug when an existing user was invited to join an organization because no invitation was created. I've also updated the README to document the new functionality surrounding email invitations and how it's necessary to set the `DOMAIN` configuration option so that links are generated correctly. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 08:36:35 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vaultwarden#2702
No description provided.