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>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 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:
master← Head:invite_existing_user_fix📝 Commits (3)
b0ac640Use JWT to validate existing user invitescb78ba9Document domain/email invitation requirementse3395eeMention 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
DOMAINconfiguration option so that links are generated correctly.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.