mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-10 17:29:18 -04:00
Refactory auth::too_many_failed_logins() out of
auth::validate_too_many_failed_logins() to conceptually separate the two.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user