Example #1
0
def get_pw(username):
    """
    Required get_password function used for flask-httpauth.
    """
    if username in users:
        return users.get(username)
    return None
Example #2
0
def load_user(id):
    return USERS.get(int(id))
Example #3
0
def get_password(username):
    return users.get(username, None)