Merge pull request #16824 from overleaf/jel-clear-sso

[web] Clear group SSO via Overleaf admin "Clear all SAML data" button

GitOrigin-RevId: e5db107da533679d51d4f05db4e65c3ab51ed1ad
This commit is contained in:
Alexandre Bourdin 2024-02-02 10:13:29 +01:00 committed by Copybot
parent 2765991fec
commit 3437b2c678

View file

@ -128,8 +128,10 @@ async function clearSAMLData(userId, auditLog, sendEmail) {
$unset: {
samlIdentifiers: 1,
'emails.$[].samlProviderId': 1,
'enrollment.sso': 1,
},
}
await updateUser(userId, update)
for (const emailData of user.emails) {