# HG changeset patch # User Dennis Fink # Date 2015-07-07 19:34:19 # Node ID ed7ffb524bd2190ee37d6afeae01fa0588016538 # Parent 7870fa269c43b231d643b074f49d2fe0ff1f99d9 Fixed line endings diff --git a/spaceapi/auth.py b/spaceapi/auth.py --- a/spaceapi/auth.py +++ b/spaceapi/auth.py @@ -1,10 +1,10 @@ -from flask import current_app -from flask.ext.httpauth import HTTPDigestAuth - -httpauth = HTTPDigestAuth() - -@httpauth.get_password -def get_pw(username): - if username == current_app.config.get('HTTP_DIGEST_AUTH_USER'): - return current_app.config.get('HTTP_DIGEST_AUTH_PASSWORD') - return None +from flask import current_app +from flask.ext.httpauth import HTTPDigestAuth + +httpauth = HTTPDigestAuth() + +@httpauth.get_password +def get_pw(username): + if username == current_app.config.get('HTTP_DIGEST_AUTH_USER'): + return current_app.config.get('HTTP_DIGEST_AUTH_PASSWORD') + return None