Changeset - ed7ffb524bd2
[Not reviewed]
default
0 1 0
Dennis Fink - 10 years ago 2015-07-07 19:34:19

Fixed line endings
1 file changed with 10 insertions and 10 deletions:
0 comments (0 inline, 0 general)
spaceapi/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 == 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
0 comments (0 inline, 0 general)