Refactory auth::too_many_failed_logins() out of

auth::validate_too_many_failed_logins() to conceptually separate the
two.
This commit is contained in:
Bharat Mediratta
2010-01-30 23:15:18 -08:00
parent 1470b99d1f
commit d92ee7954e
2 changed files with 10 additions and 11 deletions

View File

@@ -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);
}