diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-01-30 23:15:18 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-01-30 23:15:18 -0800 |
commit | d92ee7954efbf531b40ddd484f76cdfe16c0e53f (patch) | |
tree | 441b9d1faf15beff8a16195e8c6e863d666d7db6 /modules/rest/controllers/rest.php | |
parent | 1470b99d1facd07fcb46c0c4e46896d339f5a75a (diff) |
Refactory auth::too_many_failed_logins() out of
auth::validate_too_many_failed_logins() to conceptually separate the
two.
Diffstat (limited to 'modules/rest/controllers/rest.php')
-rw-r--r-- | modules/rest/controllers/rest.php | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |