get rid of start variable in form
authorChristian Weiske <cweiske@cweiske.de>
Mon, 17 Sep 2012 21:33:20 +0000 (23:33 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Mon, 17 Sep 2012 21:33:20 +0000 (23:33 +0200)
data/templates/login.htm
www/login.php

index b02503f..084b438 100644 (file)
@@ -6,17 +6,14 @@
 <link rel="stylesheet" href="css/openid.css" />
 
 <form method="post" action="/login" id="openid_form">
-  <input id="start" name="start" type="hidden" value="submit" />
-  <input id="sreg" name="sreg" type="hidden" value="on" />
-  <input id="ax" name="ax" type="hidden" value="on" />
 
 <fieldset>
   <legend>Sign-in</legend>
   <div id="openid_choice" style="display: block; ">
     <p>Please choose your account provider</p>
     <div id="openid_btns">
-      <a title="Google" href="/login?openid_url=https://www.google.com/accounts/o8/id&amp;start=submit" class="google openid_large_btn"></a>
-      <a title="Yahoo" href="/login?openid_url=http://yahoo.com&amp;start=submit" class="yahoo openid_large_btn"></a>
+      <a title="Google" href="/login?openid_url=https://www.google.com/accounts/o8/id" class="google openid_large_btn"></a>
+      <a title="Yahoo" href="/login?openid_url=http://yahoo.com/" class="yahoo openid_large_btn"></a>
     </div>
     <div id="openid_input_area">
       <p>or enter your OpenID URL.</p>
index 790a73a..e3d165d 100644 (file)
@@ -40,7 +40,7 @@ if (!count($_GET) && !count($_POST)) {
 }
 
 // Hackaround Non-Javascript Login Page
-if (!count($_POST) && isset($_GET['start'])) {
+if (!count($_POST) && isset($_GET['openid_url'])) {
     $_POST = $_GET;
 }
 
@@ -70,7 +70,7 @@ if (!empty($_POST['disable_associations']) || !empty($_SESSION['disable_associat
 $log = new \OpenID_Observer_Log;
 \OpenID::attach($log);
 
-if (isset($_POST['start'])) {
+if (isset($_POST['openid_url'])) {
 
     $_SESSION['openid_url'] = $openid_url;
     try {