Skip to content

Commit

Permalink
Invalidate the first session too (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
kasparsd authored Feb 5, 2020
1 parent e380d6a commit 8be7406
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions class-two-factor-core.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ public static function wp_login( $user_login, $user ) {
return;
}

wp_destroy_current_session();
wp_clear_auth_cookie();

self::show_two_factor_login( $user );
Expand Down

0 comments on commit 8be7406

Please sign in to comment.