mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-31 14:33:52 -04:00
Merge pull request #4523 from advplyr/fix_change_empty_root_password
Update change password to support null or empty string passwords #4522
This commit is contained in:
commit
e4c775c847
@ -280,7 +280,7 @@ class MeController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const { password, newPassword } = req.body
|
const { password, newPassword } = req.body
|
||||||
if (!password || !newPassword || typeof password !== 'string' || typeof newPassword !== 'string') {
|
if ((typeof password !== 'string' && password !== null) || (typeof newPassword !== 'string' && newPassword !== null)) {
|
||||||
return res.status(400).send('Missing or invalid password or new password')
|
return res.status(400).send('Missing or invalid password or new password')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user