示例#1
0
def load_user(username, password):

    user = User.from_id(username)

    if user and user.pw_correct(password):
        return user
    else:
        return None
示例#2
0
def load_user(username, password):

    user = User.from_id(username)

    if user and user.pw_correct(password):
        return user
    else:
        return None
示例#3
0
def load_user(id):
    return User.from_id(id)
示例#4
0
def load_user(id):
    return User.from_id(id)