summaryrefslogtreecommitdiff
path: root/modules/gallery/models
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-01-30 19:48:57 -0800
committerBharat Mediratta <bharat@menalto.com>2010-01-30 19:48:57 -0800
commit2bfcec9620814a6f3d0163a174d7ba90efef369d (patch)
treeaff296f37e108af420058e029fe107d0cde0bbb0 /modules/gallery/models
parent86fd81ef2661718914e1d4eb63108a864b6ac14c (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/models')
-rw-r--r--modules/gallery/models/failed_login.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/modules/gallery/models/failed_login.php b/modules/gallery/models/failed_login.php
new file mode 100644
index 00000000..0b84c295
--- /dev/null
+++ b/modules/gallery/models/failed_login.php
@@ -0,0 +1,20 @@
+<?php defined("SYSPATH") or die("No direct script access.");
+/**
+ * Gallery - a web based photo album viewer and editor
+ * Copyright (C) 2000-2009 Bharat Mediratta
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or (at
+ * your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+class Failed_Login_Model extends ORM {}