From afa4a8acca1f20bd853564f7c1ffd6dfb7add2fe Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 10 May 2009 19:57:58 +0000 Subject: After ajax login, just reload the current page. --- modules/user/controllers/login.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'modules/user/controllers') diff --git a/modules/user/controllers/login.php b/modules/user/controllers/login.php index 635d9997..3972787e 100644 --- a/modules/user/controllers/login.php +++ b/modules/user/controllers/login.php @@ -29,8 +29,7 @@ class Login_Controller extends Controller { list ($valid, $form) = $this->_auth("login/auth_ajax"); if ($valid) { print json_encode( - array("result" => "success", - "location" => url::site(""))); + array("result" => "success")); } else { print json_encode( array("result" => "error", -- cgit v1.2.3