diff options
author | germanazo <germanazo@phpdev> | 2011-10-23 23:36:55 -0300 |
---|---|---|
committer | germanazo <germanazo@phpdev> | 2011-10-23 23:36:55 -0300 |
commit | c3cb9c0e29e85a9d3e2e6447e7df0918676eca83 (patch) | |
tree | 32263c033b38fa1be00904000b889a268cdfaeff | |
parent | 5879ebf600db1609b0cd5112206fd1e34b722144 (diff) | |
download | elgg-c3cb9c0e29e85a9d3e2e6447e7df0918676eca83.tar.gz elgg-c3cb9c0e29e85a9d3e2e6447e7df0918676eca83.tar.bz2 |
Cleanned the login failures on passwords resets, this have more sense
-rw-r--r-- | engine/lib/users.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php index f47cc1add..54d87b2fd 100644 --- a/engine/lib/users.php +++ b/engine/lib/users.php @@ -742,7 +742,9 @@ function execute_new_password_request($user_guid, $conf_code) { if (force_user_password_reset($user_guid, $password)) { remove_private_setting($user_guid, 'passwd_conf_code'); - + // clean the logins failures + reset_login_failure_count($user_guid); + $email = elgg_echo('email:resetpassword:body', array($user->name, $password)); return notify_user($user->guid, $CONFIG->site->guid, |