Merge pull request #2300 from overleaf/jel-institution-register

Institution SSO register notification

GitOrigin-RevId: 6838b4f950f9841911da97234d1292802d3ea451
This commit is contained in:
Jessica Lawshe
2019-11-06 07:41:08 -06:00
committed by sharelatex
parent 9a252b6629
commit 67a5f08192
2 changed files with 25 additions and 2 deletions

View File

@@ -506,7 +506,10 @@ const ProjectController = {
}
// Notification: Tried to register, but account already existed
if (samlSession.registerIntercept) {
// registerIntercept is set before the institution callback.
// institutionEmail is set after institution callback.
// Check for both in case SSO flow was abandoned
if (samlSession.registerIntercept && samlSession.institutionEmail) {
notificationsInstitution.push({
email: samlSession.institutionEmail,
templateKey: 'notification_institution_sso_already_registered'