1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 18:29:27 +02:00

Add ability to update plugin auth

This commit is contained in:
Chocobozzz 2021-02-01 15:39:13 +01:00
parent cb5c2abc99
commit 6d989edc66
No known key found for this signature in database
GPG key ID: 583A612D890159BE
9 changed files with 62 additions and 8 deletions

View file

@ -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()