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