mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-05 17:01:34 +00:00
Compare commits
2 commits
0ae7340889
...
e4c775c847
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e4c775c847 | ||
|
|
45e8e72759 |
1 changed files with 1 additions and 1 deletions
|
|
@ -280,7 +280,7 @@ class MeController {
|
|||
}
|
||||
|
||||
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')
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue