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

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

GitOrigin-RevId: 0da4a570f8a704cdbd47b5905a21273c6ab85d6d
This commit is contained in:
Jakob Ackermann 2023-04-17 16:10:32 +01:00 committed by Copybot
parent c8f7bc54bc
commit 66d91dfd61

View file

@ -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',
})
}