diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2012-09-17 23:33:20 +0200 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2012-09-17 23:33:20 +0200 |
| commit | e380a7f6aaefb1bbd16a595b6f855ce036501981 (patch) | |
| tree | c660f551108734a409fbe8fbe4ab72960d8bb1f3 | |
| parent | a3087ce500d0ef3c2b6c6f67f0eeedc622074d08 (diff) | |
| download | phorkie-e380a7f6aaefb1bbd16a595b6f855ce036501981.tar.gz phorkie-e380a7f6aaefb1bbd16a595b6f855ce036501981.zip | |
get rid of start variable in form
| -rw-r--r-- | data/templates/login.htm | 7 | ||||
| -rw-r--r-- | www/login.php | 4 |
2 files changed, 4 insertions, 7 deletions
diff --git a/data/templates/login.htm b/data/templates/login.htm index b02503f..084b438 100644 --- a/data/templates/login.htm +++ b/data/templates/login.htm @@ -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&start=submit" class="google openid_large_btn"></a> - <a title="Yahoo" href="/login?openid_url=http://yahoo.com&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> diff --git a/www/login.php b/www/login.php index 790a73a..e3d165d 100644 --- a/www/login.php +++ b/www/login.php @@ -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 { |
