diff options
author | Marius Halden <marius.h@lden.org> | 2014-03-17 19:10:00 +0100 |
---|---|---|
committer | Marius Halden <marius.h@lden.org> | 2014-03-17 19:10:00 +0100 |
commit | d398793a759acc1d8bf2484f3533d0e9744bd429 (patch) | |
tree | ce453af337ad0fb94aacb6b445ce01cd7e1f717d /ddns/auth.py | |
parent | 144427894721bb54baa08a7584e850277681c71b (diff) | |
download | DDNS.py-d398793a759acc1d8bf2484f3533d0e9744bd429.tar.gz DDNS.py-d398793a759acc1d8bf2484f3533d0e9744bd429.tar.bz2 DDNS.py-d398793a759acc1d8bf2484f3533d0e9744bd429.tar.xz |
Chaged where the configfile is defined and how the config is used
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 |