From 488dbe0a4f0d5be738a5ac010d19a94ce45f20a2 Mon Sep 17 00:00:00 2001
From: Filippo Bertilotti <filippobertilotti@gmail.com>
Date: Mon, 15 Jul 2024 14:27:19 +0200
Subject: [PATCH] test submit e test connessione front end e back end

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

diff --git a/app/Http/Controllers/Profiles/ProfilesController.php b/app/Http/Controllers/Profiles/ProfilesController.php
index f5fd293..01ef315 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,13 +66,17 @@
     {
         $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);
     }
+
+    public function saveUser() {
+        return view("welcome");
+    }
 }

--
Gitblit v1.8.0