commit a75d05000198bc8407e52324496def9a29a10d10
parent 75cfd10f11cd4b5f9944a8db19693c7f4ea0c36b
Author: Jeremy Lin <jeremy.lin@gmail.com>
Date: Wed, 3 Mar 2021 23:03:55 -0800
Fix custom org name in invitation confirmation email
The org name in the invitation email was made customizable in 8867626, but
the org name is still hardcoded as "bitwarden_rs" in the confirmation email.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/api/core/organizations.rs b/src/api/core/organizations.rs
@@ -655,7 +655,7 @@ fn accept_invite(_org_id: String, _org_user_id: String, data: JsonUpcase<AcceptD
}
if CONFIG.mail_enabled() {
- let mut org_name = String::from("bitwarden_rs");
+ let mut org_name = CONFIG.invitation_org_name();
if let Some(org_id) = &claims.org_id {
org_name = match Organization::find_by_uuid(&org_id, &conn) {
Some(org) => org.name,