mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-06-23 17:29:19 +02:00
Update:Guest user accounts cannot change the account password #537
This commit is contained in:
parent
729fdd5c9f
commit
049ae73d74
3 changed files with 12 additions and 2 deletions
|
@ -133,6 +133,10 @@ class MeController {
|
|||
|
||||
// PATCH: api/me/password
|
||||
updatePassword(req, res) {
|
||||
if (req.user.isGuest) {
|
||||
Logger.error(`[MeController] Guest user attempted to change password`, req.user.username)
|
||||
return res.sendStatus(500)
|
||||
}
|
||||
this.auth.userChangePassword(req, res)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue