浏览代码

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.
Jeremy Lin 4 年之前
父节点
当前提交
a75d050001
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/api/core/organizations.rs

+ 1 - 1
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() {
     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 {
         if let Some(org_id) = &claims.org_id {
             org_name = match Organization::find_by_uuid(&org_id, &conn) {
             org_name = match Organization::find_by_uuid(&org_id, &conn) {
                 Some(org) => org.name,
                 Some(org) => org.name,