fix: OIDC feature detection

This commit is contained in:
Éloi Rivard 2024-03-29 17:17:06 +01:00
parent 66b7d813ed
commit e9c36dffd5
No known key found for this signature in database
GPG key ID: 7EDA204EA57DD184
2 changed files with 2 additions and 1 deletions

View file

@ -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
--------------------- ---------------------

View file

@ -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(),