Compare commits

..

No commits in common. "e4c775c847c6f231090ec6598e6d3e128765b82e" and "0ae73408898760ff85de33cd07576aad463d7a12" have entirely different histories.

View file

@ -280,7 +280,7 @@ class MeController {
}
const { password, newPassword } = req.body
if ((typeof password !== 'string' && password !== null) || (typeof newPassword !== 'string' && newPassword !== null)) {
if (!password || !newPassword || typeof password !== 'string' || typeof newPassword !== 'string') {
return res.status(400).send('Missing or invalid password or new password')
}