forked from Github-Mirrors/canaille
fix: OIDC feature detection
This commit is contained in:
parent
66b7d813ed
commit
e9c36dffd5
2 changed files with 2 additions and 1 deletions
|
@ -4,6 +4,7 @@
|
||||||
Fixed
|
Fixed
|
||||||
^^^^^
|
^^^^^
|
||||||
- Fix the default LDAP USER_FILTER value
|
- Fix the default LDAP USER_FILTER value
|
||||||
|
- Fix OIDC feature detection
|
||||||
|
|
||||||
[0.0.43] - 2024-03-29
|
[0.0.43] - 2024-03-29
|
||||||
---------------------
|
---------------------
|
||||||
|
|
|
@ -95,7 +95,7 @@ def setup_flask(app):
|
||||||
return {
|
return {
|
||||||
"debug": app.debug or app.config.get("TESTING", False),
|
"debug": app.debug or app.config.get("TESTING", False),
|
||||||
"has_smtp": "SMTP" in app.config["CANAILLE"],
|
"has_smtp": "SMTP" in app.config["CANAILLE"],
|
||||||
"has_oidc": "CANAILLE_OIDC" in app.config["CANAILLE"],
|
"has_oidc": "CANAILLE_OIDC" in app.config,
|
||||||
"has_password_recovery": app.config["CANAILLE"]["ENABLE_PASSWORD_RECOVERY"],
|
"has_password_recovery": app.config["CANAILLE"]["ENABLE_PASSWORD_RECOVERY"],
|
||||||
"has_registration": app.config["CANAILLE"]["ENABLE_REGISTRATION"],
|
"has_registration": app.config["CANAILLE"]["ENABLE_REGISTRATION"],
|
||||||
"has_account_lockability": app.backend.get().has_account_lockability(),
|
"has_account_lockability": app.backend.get().has_account_lockability(),
|
||||||
|
|
Loading…
Reference in a new issue