mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
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:
committed by
Copybot
parent
2765991fec
commit
3437b2c678
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user