From 24347ef6b8337e75caff59295f677b58096bc4fb Mon Sep 17 00:00:00 2001
From: davide.cucurnia@vola.it <davide.cucurnia@vola.it>
Date: Thu, 01 Feb 2024 16:27:56 +0100
Subject: [PATCH] gestione keysite e parametri, config nell'env

---
 app/Http/Controllers/Profiles/ProfilesController.php |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/app/Http/Controllers/Profiles/ProfilesController.php b/app/Http/Controllers/Profiles/ProfilesController.php
index f5fd293..3fd9b99 100644
--- a/app/Http/Controllers/Profiles/ProfilesController.php
+++ b/app/Http/Controllers/Profiles/ProfilesController.php
@@ -23,6 +23,7 @@
     {
         if ($this->authorized) {
             return view('vodafone_fake_sso.choose_profile', [
+                "domain" => Utils::getDomain($_SERVER['SERVER_NAME']),
                 "setUrl" => "/set",
                 "clearUrl" => "/clear"
             ]);
@@ -31,7 +32,6 @@
 
     public function setFakeSSO(Request $request)
     {
-        \Log::channel('sso')->debug("Attivo la sessione FakeSSO");
         if ($this->authorized) {
             $json = $request->json()->all();
             $expire = time() + (60 * 30);
@@ -49,7 +49,6 @@
 
     public function clearFakeSSO(Request $request)
     {
-        \Log::channel('sso')->debug("Rimuovo la sessione FakeSSO");
         $domain = Utils::getDomain($_SERVER['SERVER_NAME']);
         if ($this->authorized) {
             @setcookie('mc_FakeSSO', "", -1, "/", $domain);

--
Gitblit v1.8.0