Removed unnecessary debug message

This commit is contained in:
Taras Machyshyn
2015-03-16 15:51:43 +02:00
parent 541cb13ec3
commit 58cfeeb1be

View File

@@ -64,8 +64,6 @@ class Auth
public function login($username, $password)
{
$GLOBALS['log']->debug('AUTH: Try to authenticate');
$entityManager = $this->entityManager;
$authToken = $entityManager->getRepository('AuthToken')->where(array('token' => $password))->findOne();
@@ -79,7 +77,6 @@ class Auth
}
$entityManager->setUser($user);
$this->container->setUser($user);
$GLOBALS['log']->debug('AUTH: Result of authenticate is [true]');
if (!$authToken) {
$authToken = $entityManager->getEntity('AuthToken');