Browse Source

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 years ago
parent
commit
66d91dfd61
1 changed files with 3 additions and 1 deletions
  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',
         })
       }