diff options
author | Kristofer Hallin <kristofer@sunet.se> | 2021-10-06 08:41:43 +0200 |
---|---|---|
committer | Kristofer Hallin <kristofer@sunet.se> | 2021-10-06 08:41:43 +0200 |
commit | e65ebe9010f618dfa81d7d26d8bad456accfcd6e (patch) | |
tree | 5aec6f95e3be3425f47b0f13456c6797895c4475 /src/authn.py | |
parent | 7cccc2a10110d1099471e603317f00dddf53f08b (diff) |
Use yaml.safe_load instead of yaml.load
Diffstat (limited to 'src/authn.py')
-rwxr-xr-x | src/authn.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/authn.py b/src/authn.py index d57e382..e90118a 100755 --- a/src/authn.py +++ b/src/authn.py @@ -54,7 +54,7 @@ class User: class UserDB: def __init__(self, yamlfile): self._users = {} - for u, d in yaml.load(open(yamlfile)).items(): + for u, d in yaml.safe_load(open(yamlfile)).items(): self._users[u] = User(u, d['pw'], d['authz']) def dump(self): |