Changeset - 526544b1c250
[Not reviewed]
Dennis Fink - 9 years ago 2015-10-20 00:24:04
dennis.fink@c3l.lu
Fix update api

There was a typo
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
ennstatus/api/auth.py
Show inline comments
 
from flask import current_app
 
from flask.ext.httpauth import HTTPDigestAuth
 

	
 
httpauth = HTTPDigestAuth()
 

	
 

	
 
@httpauth.get_password
 
def get_pw(username):
 

	
 
    if username in current_app.config['ENNSTATUS_SERVERS']:
 
        return current_app.confg['ENNSTATUS_SERVERS'][username]['PASSWORD']
 
        return current_app.config['ENNSTATUS_SERVERS'][username]['PASSWORD']
 

	
 
    return None
0 comments (0 inline, 0 general)