davide.cucurnia@vola.it
2024-02-01 555a537e2e5d9220e3777c30b185606823c817f2
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);