feat(chat): botón cerrar sesión en el header del chat

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro
2026-07-14 01:08:46 +00:00
co-authored by Claude Sonnet 4.6
parent 5f06c27869
commit 9d0940873d
2 changed files with 28 additions and 0 deletions
+21
View File
@@ -137,6 +137,27 @@ class PublicChat extends Component
$this->paso = 'email';
}
public function cerrarSesion(): void
{
$this->email = '';
$this->nombreRegistro = '';
$this->cedulaRegistro = '';
$this->celularRegistro = '';
$this->codigoIngresado = '';
$this->emailMascarado = null;
$this->contactIdPending = null;
$this->userId = null;
$this->nombreUsuario = null;
$this->saldoUsuario = null;
$this->convId = null;
$this->estadoConv = 'bot';
$this->flujo = '';
$this->flujoData = [];
$this->mensajes = [];
$this->input = '';
$this->paso = 'email';
}
// ─────────────────────────────────────────────────────────
// Paso 2b: verificar código OTP
// ─────────────────────────────────────────────────────────