Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

        def auth(user,password):
        key = read_key()
        try:
                hash = md5.new(password)
                if (user == key[0]) and (hash.hexdigest() == key[1]):
                        return True
        except TypeError:
                return False
        return False
        


src/a/r/aria-server-HEAD/src/aria/__init__.py   aria-server(Download)
def auth():
    username = request.cookies.get('username')
    password = request.cookies.get('password')
 
    return key.auth(username,password)
        resp.set_cookie('username',request.form['username'])
        resp.set_cookie('password',request.form['password'])
        if key.auth (request.form['username'],request.form['password']):
            return resp
        else :