From db15e7c4b15ba63505518499e141a1791532d020 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Mon, 21 Aug 2023 15:31:58 -0400 Subject: [PATCH] fix: return empty array for 'sso' otherwise --- src/controllers/accounts/edit.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/controllers/accounts/edit.js b/src/controllers/accounts/edit.js index 9b6526ad80..545d2b6392 100644 --- a/src/controllers/accounts/edit.js +++ b/src/controllers/accounts/edit.js @@ -40,6 +40,7 @@ editController.get = async function (req, res) { payload.groups = _groups.filter(g => g && g.userTitleEnabled && !groups.isPrivilegeGroup(g.name) && g.name !== 'registered-users'); + payload.sso = []; if (req.uid === res.locals.uid || canManageUsers) { payload.sso = await plugins.hooks.fire('filter:auth.list', { uid: res.locals.uid, associations: [] }); }