From 6d989edc66e7b541fcf97c2a4a6f91cbf960060a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 1 Feb 2021 15:39:13 +0100 Subject: Add ability to update plugin auth --- server/controllers/api/users/index.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'server/controllers/api') diff --git a/server/controllers/api/users/index.ts b/server/controllers/api/users/index.ts index c3190e731..5911d1a0f 100644 --- a/server/controllers/api/users/index.ts +++ b/server/controllers/api/users/index.ts @@ -327,6 +327,7 @@ async function updateUser (req: express.Request, res: express.Response) { if (body.videoQuotaDaily !== undefined) userToUpdate.videoQuotaDaily = body.videoQuotaDaily if (body.role !== undefined) userToUpdate.role = body.role if (body.adminFlags !== undefined) userToUpdate.adminFlags = body.adminFlags + if (body.pluginAuth !== undefined) userToUpdate.pluginAuth = body.pluginAuth const user = await userToUpdate.save() -- cgit v1.2.3