1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 19:42:24 +02:00

Cleanup reset user password by admin

And add some tests
This commit is contained in:
Chocobozzz 2019-02-11 09:30:29 +01:00
parent 67b1d3fed7
commit b426edd485
No known key found for this signature in database
GPG key ID: 583A612D890159BE
18 changed files with 97 additions and 85 deletions

View file

@ -167,7 +167,7 @@ async function deleteMe (req: express.Request, res: express.Response) {
return res.sendStatus(204)
}
async function updateMe (req: express.Request, res: express.Response, next: express.NextFunction) {
async function updateMe (req: express.Request, res: express.Response) {
const body: UserUpdateMe = req.body
const user: UserModel = res.locals.oauth.token.user