def check_password(self, user_id, password): user = self.get(user_id) return utils.check_password(password, user.password)
def check_password(self, user, password): return utils.check_password(password, user.password)