mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Merge pull request #2300 from overleaf/jel-institution-register
Institution SSO register notification GitOrigin-RevId: 6838b4f950f9841911da97234d1292802d3ea451
This commit is contained in:
committed by
sharelatex
parent
9a252b6629
commit
67a5f08192
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user