X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmiddlewares%2Fvalidators%2Fusers.ts;h=4be446732d1959adc44ddb48c442dac6f13f808f;hb=2ba92871319d7af63472c1380664a9f9eeb1c690;hp=e8ade0f971c2b959ae2807d65f47b035c0572d0d;hpb=dae86118ed5d4026d04acb9d0e36829b9ad8eb4e;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/middlewares/validators/users.ts b/server/middlewares/validators/users.ts index e8ade0f97..4be446732 100644 --- a/server/middlewares/validators/users.ts +++ b/server/middlewares/validators/users.ts @@ -160,7 +160,7 @@ const usersUpdateMeValidator = [ .end() } - const user= res.locals.oauth.token.User + const user = res.locals.oauth.token.User if (await user.isPasswordMatch(req.body.currentPassword) !== true) { return res.status(401) .send({ error: 'currentPassword is invalid.' })