Skip to content

Commit

Permalink
Increment app password count on use - see #30
Browse files Browse the repository at this point in the history
  • Loading branch information
julien731 committed Oct 11, 2016
1 parent e1f274a commit e711271
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions includes/class-authenticate.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,7 @@ public function checkAppPassword( $user, $username, $password ) {
$pwd_keys = array_flip( $passwords );

WPGA()->access_log->log_access( $user_data->ID, $pwd_keys[ $hash ], current_time( 'mysql' ), $_SERVER['REMOTE_ADDR'], $_SERVER['HTTP_USER_AGENT'] );

// INCREMENT COUNT
WPGA()->recovery->increment_count( $pwd_keys[ $hash ] );

return new WP_User( $user_data->ID );

Expand Down

0 comments on commit e711271

Please sign in to comment.