mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-03-02 14:09:43 +00:00
Fix backchannel logout always returning 501
global.ServerSettings is a plain JSON object from toJSON(), so the isOpenIDAuthSettingsValid getter was always undefined. Use Database.serverSettings instead, matching the rest of the codebase.
This commit is contained in:
parent
d5047978a8
commit
b3d63f4158
1 changed files with 1 additions and 1 deletions
|
|
@ -459,7 +459,7 @@ class Auth {
|
|||
if (!global.ServerSettings.authOpenIDBackchannelLogoutEnabled) {
|
||||
return res.status(501).json({ error: 'not_implemented' })
|
||||
}
|
||||
if (!global.ServerSettings.authActiveAuthMethods.includes('openid') || !global.ServerSettings.isOpenIDAuthSettingsValid) {
|
||||
if (!global.ServerSettings.authActiveAuthMethods.includes('openid') || !Database.serverSettings.isOpenIDAuthSettingsValid) {
|
||||
return res.status(501).json({ error: 'not_implemented' })
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue