mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-10 17:29:18 -04:00
Replace self::func() with <helper_name>::func() for all public APIs
and constants to make overloading easier. Fixes #1510.
This commit is contained in:
@@ -74,13 +74,13 @@ class auth_Core {
|
||||
}
|
||||
|
||||
static function validate_too_many_failed_logins($name_input) {
|
||||
if (self::too_many_failures($name_input->value)) {
|
||||
if (auth::too_many_failures($name_input->value)) {
|
||||
$name_input->add_error("too_many_failed_logins", 1);
|
||||
}
|
||||
}
|
||||
|
||||
static function validate_too_many_failed_auth_attempts($form_input) {
|
||||
if (self::too_many_failures(identity::active_user()->name)) {
|
||||
if (auth::too_many_failures(identity::active_user()->name)) {
|
||||
$form_input->add_error("too_many_failed_auth_attempts", 1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user