mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05: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:
parent
2765991fec
commit
3437b2c678
1 changed files with 2 additions and 0 deletions
|
@ -128,8 +128,10 @@ async function clearSAMLData(userId, auditLog, sendEmail) {
|
||||||
$unset: {
|
$unset: {
|
||||||
samlIdentifiers: 1,
|
samlIdentifiers: 1,
|
||||||
'emails.$[].samlProviderId': 1,
|
'emails.$[].samlProviderId': 1,
|
||||||
|
'enrollment.sso': 1,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
await updateUser(userId, update)
|
await updateUser(userId, update)
|
||||||
|
|
||||||
for (const emailData of user.emails) {
|
for (const emailData of user.emails) {
|
||||||
|
|
Loading…
Reference in a new issue