Si token no existe, no se puede borrar
This commit is contained in:
@ -86,7 +86,7 @@ class Login
|
|||||||
} catch (Exception $exception) {
|
} catch (Exception $exception) {
|
||||||
$this->logger->notice($exception);
|
$this->logger->notice($exception);
|
||||||
$savedToken = $this->login();
|
$savedToken = $this->login();
|
||||||
if ($savedToken === '') {
|
if ($savedToken === '' and file_exists($this->tokenFilename)) {
|
||||||
unlink($this->tokenFilename);
|
unlink($this->tokenFilename);
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user