From d92ee7954efbf531b40ddd484f76cdfe16c0e53f Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sat, 30 Jan 2010 23:15:18 -0800 Subject: Refactory auth::too_many_failed_logins() out of auth::validate_too_many_failed_logins() to conceptually separate the two. --- modules/rest/controllers/rest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/rest/controllers/rest.php') diff --git a/modules/rest/controllers/rest.php b/modules/rest/controllers/rest.php index 64a548d0..9141d6d4 100644 --- a/modules/rest/controllers/rest.php +++ b/modules/rest/controllers/rest.php @@ -22,7 +22,7 @@ class Rest_Controller extends Controller { $username = Input::instance()->post("user"); $password = Input::instance()->post("password"); - if (empty($username) || !auth::validate_too_many_failed_logins($username)) { + if (empty($username) || auth::too_many_failed_logins($username)) { throw new Rest_Exception("Forbidden", 403); } -- cgit v1.2.3