diff --git a/src/Skobkin/Bundle/PointToolsBundle/Service/UserApi.php b/src/Skobkin/Bundle/PointToolsBundle/Service/UserApi.php index a7166e0..be1d450 100644 --- a/src/Skobkin/Bundle/PointToolsBundle/Service/UserApi.php +++ b/src/Skobkin/Bundle/PointToolsBundle/Service/UserApi.php @@ -62,7 +62,7 @@ class UserApi extends AbstractApi { $auth = $this->authenticate($login, $password); - if (!$auth->getError() && $auth->getToken()) { + if (null === $auth->getError() && null !== $auth->getToken()) { $this->logout($auth); return true;