mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Forgot to get the 'value' key here..
This commit is contained in:
parent
5461025479
commit
69d0503ba5
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ class PasswordValidator(object):
|
||||||
# (or at least that's my understanding -- Alex)
|
# (or at least that's my understanding -- Alex)
|
||||||
settings = json.load(open('/etc/yunohost/settings.json', "r"))
|
settings = json.load(open('/etc/yunohost/settings.json', "r"))
|
||||||
setting_key = "security.password." + profile + ".strength"
|
setting_key = "security.password." + profile + ".strength"
|
||||||
self.validation_strength = int(settings[setting_key])
|
self.validation_strength = int(settings[setting_key]["value"])
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
# Fallback to default value if we can't fetch settings for some reason
|
# Fallback to default value if we can't fetch settings for some reason
|
||||||
self.validation_strength = 1
|
self.validation_strength = 1
|
||||||
|
|
Loading…
Add table
Reference in a new issue