Merge pull request #3543 from overleaf/jel-em-ip-matcher

IP matcher notifications

GitOrigin-RevId: 50811fb683961f4d021b37b1d97c24da48c59720
This commit is contained in:
Jessica Lawshe
2021-01-20 03:04:42 +00:00
committed by Copybot
parent b44aed56dd
commit d612c03f8e
4 changed files with 137 additions and 69 deletions
@@ -127,9 +127,15 @@ function ipMatcherAffiliation(userId) {
}
const key = `ip-matched-affiliation-${body.id}`
const portalPath = body.portal_slug
? `/${body.is_university ? 'edu' : 'org'}/${body.portal_slug}`
: undefined
const messageOpts = {
university_name: body.name,
content: body.enrolment_ad_html
institutionId: body.id,
content: body.enrolment_ad_html,
portalPath,
ssoEnabled: body.sso_enabled
}
return NotificationsHandler.createNotification(
userId,