Skip to content

Commit c10e49b

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 ae27eae commit c10e49b

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
@@ -77,7 +77,7 @@
7777
# fake login so the user can set their password
7878
auth_attempt_script_login( user_get_field( $f_user_id, 'username' ) );
7979

80-
user_increment_failed_login_count( $f_user_id );
80+
user_increment_login_count( $f_user_id );
8181

8282
include ( dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'account_page.php' );
8383

0 commit comments

Comments
 (0)
Please sign in to comment.