Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f921d55

Browse files
committedJun 13, 2012
Fix verify.php bumping failed count instead of login count
This prevented admins to unlock a user's account by resetting their password when $g_max_failed_login_count = 1. See commit d306af5 Fixes #14387
1 parent dbc5ffd commit f921d55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎verify.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
# fake login so the user can set their password
6464
auth_attempt_script_login( user_get_field( $f_user_id, 'username' ) );
6565

66-
user_increment_failed_login_count( $f_user_id );
66+
user_increment_login_count( $f_user_id );
6767

6868
include ( dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'account_page.php' );
6969

0 commit comments

Comments
 (0)
Please sign in to comment.