https://issues.shibboleth.net/jira/browse/SSPCPP-585
[shibboleth/cpp-sp.git] / configs / postTemplate.html
index a0977db..d8c4728 100644 (file)
@@ -1,27 +1,37 @@
 <html>
-       <head>
-               <title>Shibboleth Login Post</title>
-       </head>
-       <body onload="document.forms[0].submit()">
+    <head>
+        <title>Login Completed</title>
+        <script language="Javascript">
+        <!--
+        function submitOnce() {
+          if (location.hash.length>0) {
+             if (confirm("Are you sure you want to resubmit this form information a second time?")) {
+                document.getElementById("shib_continue").click();
+             } else {
+                document.body.innerHTML="<html>Form information was not resubmitted.</html>";
+             }
+          } else {
+             var loc = window.location;
+             window.location = loc + "#submitted";
+             document.getElementById("shib_continue").click();
+          }
+        }
+        // -->
+        </script>
+    </head>
+    <body onload="submitOnce()">
+        <h2>Login Completed</h2>
 
-               <!-- <h1>Shibboleth Login Post</h1> -->
-               
-               <noscript>
-               <p>
-               <strong>Note:</strong> Since your browser does not support JavaScript, you must press the
-               Continue button to proceed.
-               </p>
-               </noscript>
-       
-               <form method="POST" action="<shibmlp action/>">
-               <shibmlpfor PostedData>
-                       <input type="hidden" name="<shibmlp _name_/>" value="<shibmlp _value_/>"/>
-               </shibmlpfor>
-               <noscript>
-               <div>
-               <input type="submit" name="_shib_continue_" value="Continue"/>
-               </div>
-               </noscript>
-               </form>
-       </body>
+        <noscript>
+        <p>A form submission to this site was interrupted by the login process.
+        If you would like to complete it now, submit this form.</p>
+        </noscript>
+        
+        <form method="POST" action="<shibmlp action/>">
+        <shibmlpfor PostedData>
+            <input type="hidden" name="<shibmlp $name/>" value="<shibmlp $value/>"/>
+        </shibmlpfor>
+        <input type="submit" id="shib_continue" name="_shib_continue_" value="Continue"/>
+        </form>
+    </body>
 </html>