diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2010-01-30 19:48:57 -0800 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2010-01-30 19:48:57 -0800 |
| commit | 2bfcec9620814a6f3d0163a174d7ba90efef369d (patch) | |
| tree | aff296f37e108af420058e029fe107d0cde0bbb0 /modules/gallery/helpers/gallery_event.php | |
| parent | 86fd81ef2661718914e1d4eb63108a864b6ac14c (diff) | |
Prevent brute force login attacks by reducing login attempts to 1 per
minute after there have been 5 consecutive failed login attempts.
Fix for ticket #589.
Diffstat (limited to 'modules/gallery/helpers/gallery_event.php')
| -rw-r--r-- | modules/gallery/helpers/gallery_event.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/gallery/helpers/gallery_event.php b/modules/gallery/helpers/gallery_event.php index 80452276..6479e2c3 100644 --- a/modules/gallery/helpers/gallery_event.php +++ b/modules/gallery/helpers/gallery_event.php @@ -110,6 +110,11 @@ class gallery_event_Core { graphics::choose_default_toolkit(); module::clear_var("gallery", "choose_default_tookit"); } + auth::record_successful_login($user); + } + + static function user_login_failed($name) { + auth::record_failed_login($name); } static function item_index_data($item, $data) { |
