public function authenticate(User $user, array $params = [])
    {
        if ($user->isEnabled() && password_verify($params['password'], $user->getPassword())) {
            return $user->getId();
        }
        return false;
    }