]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/middlewares/validators/users.ts
Cleanup invalid rates/comments/shares
[github/Chocobozzz/PeerTube.git] / server / middlewares / validators / users.ts
index e8ade0f971c2b959ae2807d65f47b035c0572d0d..4be446732d1959adc44ddb48c442dac6f13f808f 100644 (file)
@@ -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.' })