This commit has been accessed 614 times via Git panel.
commit 2e211835e5817d140c2b5a9e5d44fcfd2c83a77c
tree 0811dd596fc5e101fa6b676b1ca60635726620b9
parent 26787eab08dbd25b23f74e23ed4249dbb9c9af30
author Magie Antonio <magie@majcms.org> 1307320361 +0800
committer Magie Antonio <magie@majcms.org> 1307320361 +0800
Enable auto-lockout counter reset on successful login
diff --git a/login.php b/login.php
index 79ac5e8..8ad4cd1 100644
--- a/login.php
+++ b/login.php
@@ -162,6 +162,10 @@ a:active {
fclose($login_count_file);
$err_password = "0";
+
+ if (file_exists("data/members/active/$put_username/bb-invalid.txt")) {
+ unlink("data/members/active/$put_username/bb-invalid.txt");
+ }
header("Location: index.php");
}
tree 0811dd596fc5e101fa6b676b1ca60635726620b9
parent 26787eab08dbd25b23f74e23ed4249dbb9c9af30
author Magie Antonio <magie@majcms.org> 1307320361 +0800
committer Magie Antonio <magie@majcms.org> 1307320361 +0800
Enable auto-lockout counter reset on successful login
diff --git a/login.php b/login.php
index 79ac5e8..8ad4cd1 100644
--- a/login.php
+++ b/login.php
@@ -162,6 +162,10 @@ a:active {
fclose($login_count_file);
$err_password = "0";
+
+ if (file_exists("data/members/active/$put_username/bb-invalid.txt")) {
+ unlink("data/members/active/$put_username/bb-invalid.txt");
+ }
header("Location: index.php");
}