mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-01 21:31:36 +02:00
Merge pull request #28126 from overleaf/ii-domain-capture-join-success-message
[web] Notification message for joining group via domain capture GitOrigin-RevId: 67ef924b2d80afb5e1de75fb6aab147263c0f33c
This commit is contained in:
@@ -285,6 +285,8 @@ async function projectListPage(req, res, next) {
|
||||
const notificationsInstitution = []
|
||||
// Institution and group SSO Notifications
|
||||
let groupSsoSetupSuccess
|
||||
let viaDomainCapture
|
||||
let joinedGroupName = ''
|
||||
let reconfirmedViaSAML
|
||||
if (Features.hasFeature('saml')) {
|
||||
reconfirmedViaSAML = _.get(req.session, ['saml', 'reconfirmed'])
|
||||
@@ -324,6 +326,8 @@ async function projectListPage(req, res, next) {
|
||||
// Notification group SSO: After SSO Linked
|
||||
if (samlSession.linkedGroup) {
|
||||
groupSsoSetupSuccess = true
|
||||
viaDomainCapture = samlSession.domainCaptureJoin
|
||||
joinedGroupName = samlSession.universityName
|
||||
}
|
||||
|
||||
// Notification institution SSO: After SSO Linked or Logging in
|
||||
@@ -517,6 +521,8 @@ async function projectListPage(req, res, next) {
|
||||
showBrlGeoBanner,
|
||||
projectDashboardReact: true, // used in navbar
|
||||
groupSsoSetupSuccess,
|
||||
joinedGroupName,
|
||||
viaDomainCapture,
|
||||
groupSubscriptionsPendingEnrollment:
|
||||
groupSubscriptionsPendingEnrollment.map(subscription => ({
|
||||
groupId: subscription._id,
|
||||
|
||||
Reference in New Issue
Block a user