Parcourir la source

Fix empty password check in settings

Raphael Khaiat il y a 8 ans
Parent
commit
aa6071f6f4
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      kalliope/core/ConfigurationManager/SettingLoader.py

+ 1 - 1
kalliope/core/ConfigurationManager/SettingLoader.py

@@ -423,7 +423,7 @@ class SettingLoader(object):
                 if password_protected:
                     if login is None:
                         raise NullSettingException("login setting cannot be null if password_protected is True")
-                    if login is None:
+                    if password is None:
                         raise NullSettingException("password setting cannot be null if password_protected is True")
                 active = rest_api["active"]
                 if active is None: