Ver código fonte

Created new PersistentConfig for new environment variable ENABLE_USERNAME_PASSWORD_LOGIN

Dillon 9 meses atrás
pai
commit
f9289d3079
1 arquivos alterados com 6 adições e 0 exclusões
  1. 6 0
      backend/config.py

+ 6 - 0
backend/config.py

@@ -709,6 +709,12 @@ ENABLE_SIGNUP = PersistentConfig(
     ),
 )
 
+ENABLE_USERNAME_PASSWORD_LOGIN = PersistentConfig(
+    "ENABLE_USERNAME_PASSWORD_LOGIN",
+    "ui.enable_username_password_login",
+    os.environ.get("ENABLE_USERNAME_PASSWORD_LOGIN", "True").lower() == "true",
+)
+
 DEFAULT_LOCALE = PersistentConfig(
     "DEFAULT_LOCALE",
     "ui.default_locale",