def load_user(username, password): user = User.from_id(username) if user and user.pw_correct(password): return user else: return None
def load_user(id): return User.from_id(id)