diff options
| author | Andy Staudacher <andy.st@gmail.com> | 2010-02-06 11:32:53 -0800 |
|---|---|---|
| committer | Andy Staudacher <andy.st@gmail.com> | 2010-02-06 11:32:53 -0800 |
| commit | 4977c00db1b812abad5ad2d530e1dd44171b6d85 (patch) | |
| tree | 4abab0ff9bb6951f8a53b49ea8d2f494a48140d0 /modules/gallery/helpers/gallery_event.php | |
| parent | 31aaf7555f51dd80cf1e97fd3c20a1c245cbf61b (diff) | |
| parent | 15e22076552929bf1f45888945f65de621aa2aac (diff) | |
Merge commit 'upstream/master'
Diffstat (limited to 'modules/gallery/helpers/gallery_event.php')
| -rw-r--r-- | modules/gallery/helpers/gallery_event.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/modules/gallery/helpers/gallery_event.php b/modules/gallery/helpers/gallery_event.php index 6479e2c3..7b538c49 100644 --- a/modules/gallery/helpers/gallery_event.php +++ b/modules/gallery/helpers/gallery_event.php @@ -110,11 +110,19 @@ class gallery_event_Core { graphics::choose_default_toolkit(); module::clear_var("gallery", "choose_default_tookit"); } - auth::record_successful_login($user); + auth::clear_failed_auth_attempts($user); } static function user_login_failed($name) { - auth::record_failed_login($name); + auth::record_failed_auth_attempts($name); + } + + static function user_password_changed($user) { + auth::clear_failed_auth_attempts($user); + } + + static function user_password_change_failed($name) { + auth::record_failed_auth_attempts($name); } static function item_index_data($item, $data) { |
