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:
parent
cb5c2abc99
commit
6d989edc66
9 changed files with 62 additions and 8 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue