davide.cucurnia@vola.it
2024-02-07 68b84d1f652aae4644c2dde96d9bb99e358294e8
resources/views/vodafone_fake_sso/choose_profile.blade.php
@@ -29,6 +29,12 @@
            margin-top: 26px;
            line-height: 42px;
        }
        a {
            text-decoration:underline;
            display: block;
        }
    </style>
</head>
@@ -38,13 +44,13 @@
    <div class="grid">
        <h1 class="vfa-red-title">Laravel FakeSSO</h1>
        <h1 class="vfa-red-title">Standalone FakeSSO Server</h1>
        <form id="fakesso" name="fakesso" action="" method="POST">
            @csrf
            <div class="c-box">
                <h2>Seleziona il profilo SSO su cui vuoi loggarti</h2>
                <p>Il login utilizza i cookie a livello di dominio, risulterai loggato su tutti i portali che utilizzano il dominio attuale.</p>
                <p>Il login utilizza i cookie a livello di dominio, risulterai loggato su tutti i portali che utilizzano il dominio attuale ({{$domain}}).</p>
                <select id="sel_attiva">
                    @foreach (config('devtools.fake_sso_profiles') as $profileIndex => $profileContent)
                        <option value="{{$profileIndex}}">{{$profileContent['name']}}</option>
@@ -65,7 +71,7 @@
        <div class="c-box">
            <h2>Scorciatoie Portali</h2>
            @foreach (config('custom.portals_shortcuts',[]) as $websiteName => $websiteUri)
                <br> <a href="{{$websiteUri}}" target="_blank">{{$websiteName}}</a>
                <a href="{{$websiteUri}}" target="_blank">{{$websiteName}}</a>
            @endforeach
        </div>
    </div>
@@ -78,7 +84,7 @@
        document.getElementById("btnAttiva").onclick = setCookies;
        document.getElementById("btnReset").onclick = delCookies;
        function callAjax(url, withReload = true) {
        function callAjax(url) {
            document.getElementById('vola-loading').style.display = 'block';
            let profile = document.getElementById('sel_attiva').value;
            $.ajax({
@@ -91,12 +97,8 @@
                data: JSON.stringify({prof: profile}),
            }).done(function (msg) {
                document.getElementById('vola-loading').style.display = 'none';
                if (withReload) {
                    location.href = location.origin + "/get";
                }
            }).fail(function() {
                document.getElementById('vola-loading').style.display = 'none';
                location.href = location.origin + "/get";
            });
        }