From b55a38378482bfe6a43315f5b665f608a7651880 Mon Sep 17 00:00:00 2001
From: davide.cucurnia@vola.it <davide.cucurnia@vola.it>
Date: Tue, 02 Jul 2024 12:15:15 +0200
Subject: [PATCH] sistemazione migration per modifica campi di appartenenza e foreign keys

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

diff --git a/app/Http/Controllers/Profiles/ProfilesController.php b/app/Http/Controllers/Profiles/ProfilesController.php
index f5fd293..4a87420 100644
--- a/app/Http/Controllers/Profiles/ProfilesController.php
+++ b/app/Http/Controllers/Profiles/ProfilesController.php
@@ -23,6 +23,8 @@
     {
         if ($this->authorized) {
             return view('vodafone_fake_sso.choose_profile', [
+                "domain" => Utils::getDomain($_SERVER['SERVER_NAME']),
+                "loggedInfo" => Utils::getLoggedUser($request),
                 "setUrl" => "/set",
                 "clearUrl" => "/clear"
             ]);
@@ -31,7 +33,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 +50,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);
@@ -66,12 +66,12 @@
     {
         $defaultXML = \Arr::first(config('devtools.fake_sso_profiles'));
         $data = [
-            "sso_getWebcustomerInformation" => \Arr::first($defaultXML["sso"]["getWebcustomerInformation"]["parametri"]["t"]),
-            "sso_getMSISDNDetails" => \Arr::first($defaultXML["sso"]["getMSISDNDetails"]["parametri"]["t"]),
-            "sso_getMSISDNList" => \Arr::first($defaultXML["sso"]["getMSISDNList"]["parametri"]["t"]),
+            "sso_getWebcustomerInformation" => \Arr::first($defaultXML["sso"]["getWebcustomerInformation"]["parametri"]["k"]),
+            "sso_getMSISDNDetails" => \Arr::first($defaultXML["sso"]["getMSISDNDetails"]["parametri"]["k"]),
+            "sso_getMSISDNList" => \Arr::first($defaultXML["sso"]["getMSISDNList"]["parametri"]["k"]),
             "sso_getSelectedMSISDNDetails" => \Arr::first($defaultXML["sso"]["getSelectedMSISDNDetails"]["parametri"]["ms"]),
             "sso_getInfoActivationWSC" => \Arr::first($defaultXML["sso"]["getInfoActivationWSC"]["parametri"]["boID"]),
-            "picasso_getWebcustomerInformation" => \Arr::first($defaultXML["picasso"]["getWebcustomerInformation"]["parametri"]["t"]),
+            "picasso_getWebcustomerInformation" => \Arr::first($defaultXML["picasso"]["getWebcustomerInformation"]["parametri"]["k"]),
         ];
         return view('vodafone_fake_sso.create-view', $data);
     }

--
Gitblit v1.8.0