diff options
Diffstat (limited to 'ddns/auth.py')
-rw-r--r-- | ddns/auth.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ddns/auth.py b/ddns/auth.py index 6624aad..030d239 100644 --- a/ddns/auth.py +++ b/ddns/auth.py @@ -4,10 +4,8 @@ from functools import wraps import ddns.cfg_parser import hash -auth_cfg = ddns.cfg_parser.cfg['users'] - def check_auth(username, password): - for user in auth_cfg: + for user in ddns.cfg_parser.cfg.get('users'): if username == user['username'] and \ hash.hash(user['hash'], password) == user['password']: return True |