diff options
| author | Nathan Kinkade <nkinkade@nkinka.de> | 2010-02-03 13:48:34 +0000 |
|---|---|---|
| committer | Nathan Kinkade <nkinkade@nkinka.de> | 2010-02-03 13:48:34 +0000 |
| commit | 052476ef44ca801766cbd6bdbfe42d5a0a362e52 (patch) | |
| tree | f7a1d39fe4aae154e916e2cd4c02a798aef6c67f /modules/gallery/helpers/gallery_event.php | |
| parent | 92d211bae653b6c94e0038b1a47734a1acaa149e (diff) | |
| parent | 99a7f470b93d35717f8d5979d05da6cf05a1dd20 (diff) | |
Merge branch 'master' of git://github.com/gallery/gallery3
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) { |
