summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristofer Hallin <kristofer@sunet.se>2021-10-06 08:41:43 +0200
committerKristofer Hallin <kristofer@sunet.se>2021-10-06 08:41:43 +0200
commite65ebe9010f618dfa81d7d26d8bad456accfcd6e (patch)
tree5aec6f95e3be3425f47b0f13456c6797895c4475
parent7cccc2a10110d1099471e603317f00dddf53f08b (diff)
Use yaml.safe_load instead of yaml.load
-rwxr-xr-xsrc/authn.py2
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):