mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-27 03:31:46 +00:00
Forward Auth refactor and adding PROXY_FORWARD_AUTH_LOGOUT_URI env
This commit is contained in:
parent
8558baf30a
commit
73a61872fa
9 changed files with 139 additions and 68 deletions
|
|
@ -1,8 +1,8 @@
|
|||
const true_values = ["true", "yes", "y", "1", "on"];
|
||||
const true_values = ["true", "yes", "y", "1", "on"]
|
||||
|
||||
module.exports.parseBool = (value) => {
|
||||
if (Object.is(value, null) || value === undefined) {
|
||||
return false;
|
||||
return false
|
||||
}
|
||||
return true_values.includes(String(value).toLowerCase());
|
||||
return true_values.includes(String(value).toLowerCase())
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue