Si token no existe, no se puede borrar

This commit is contained in:
Juan Pablo Vial
2025-06-03 16:01:48 -04:00
parent 2a442417ce
commit e796d91d95

View File

@ -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 '';
}