瀏覽代碼

Merge pull request #12632 from overleaf/jdt-jpa-sso-notification-logging

[web] fallback to providerName when displaying SSO-linked notification

GitOrigin-RevId: 0da4a570f8a704cdbd47b5905a21273c6ab85d6d
Jakob Ackermann 3 年之前
父節點
當前提交
66d91dfd61
共有 1 個文件被更改,包括 3 次插入 和 1 次删除
  1. 3 1
      services/web/app/src/Features/Project/ProjectListController.js

+ 3 - 1
services/web/app/src/Features/Project/ProjectListController.js

@@ -216,7 +216,9 @@ async function projectListPage(req, res, next) {
       if (samlSession.linked) {
         notificationsInstitution.push({
           email: samlSession.institutionEmail,
-          institutionName: samlSession.linked.universityName,
+          institutionName:
+            samlSession.linked.universityName ||
+            samlSession.linked.providerName,
           templateKey: 'notification_institution_sso_linked',
         })
       }