[aur-dev] [PATCH] Revert "Move call to try_login to login_form."
This reverts commit 77d93c4946fabcda417b6a5672d881c64e11fb78. --- web/lib/aur.inc | 3 +++ web/template/login_form.php | 6 ------ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/web/lib/aur.inc b/web/lib/aur.inc index 3d0f3e0..e43ddf6 100644 --- a/web/lib/aur.inc +++ b/web/lib/aur.inc @@ -343,6 +343,9 @@ function html_header($title="") { global $LANG; global $SUPPORTED_LANGS; + $login = try_login(); + $login_error = $login['error']; + $title = htmlspecialchars($title, ENT_QUOTES); include('header.php'); diff --git a/web/template/login_form.php b/web/template/login_form.php index e1192c0..70c24c7 100644 --- a/web/template/login_form.php +++ b/web/template/login_form.php @@ -1,9 +1,3 @@ -<?php -include_once('acctfuncs.inc'); -$login = try_login(); -$login_error = $login['error']; -?> - <span id="login_bar"> <?php if (isset($_COOKIE["AURSID"])) { -- 1.6.0.2
This patch isn't working for me, I can't log in. I agree with it if we can figure something out to fix the patch but you can't set cookies after the headers have been already sent so I can't login. -- Callan Barrett
On Sat, Dec 20, 2008 at 06:11:46PM +0900, Callan Barrett wrote:
This reverts commit 77d93c4946fabcda417b6a5672d881c64e11fb78. --- web/lib/aur.inc | 3 +++ web/template/login_form.php | 6 ------ 2 files changed, 3 insertions(+), 6 deletions(-)
Pushed. Thanks for keeping a look out. What's really bizarre is that I had no problem logging in.
participants (2)
-
Callan Barrett
-
Loui Chang