From e796d91d951df17faeaa0ed39df2e0fd4296e17e Mon Sep 17 00:00:00 2001 From: Juan Pablo Vial Date: Tue, 3 Jun 2025 16:01:48 -0400 Subject: [PATCH] Si token no existe, no se puede borrar --- cli/src/Service/Login.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/Service/Login.php b/cli/src/Service/Login.php index 32c4357..dd2a588 100644 --- a/cli/src/Service/Login.php +++ b/cli/src/Service/Login.php @@ -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 ''; }