mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-11-29 20:02:42 +01:00
Update:Guest user accounts cannot change the account password #537
This commit is contained in:
1 parent
729fdd5c9f
commit
049ae73d74
3 files changed
+12
-2
No files matched your search
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user