Small quality fixes in UserApi.
This commit is contained in:
parent
48b47c9bc2
commit
4e9c556320
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue