Skip to content

Commit

Permalink
Merge pull request #3262 from mircobabini/fix/issue-3261
Browse files Browse the repository at this point in the history
Fix error handling for password reset invalid/expired keys.
  • Loading branch information
dparker1005 authored Jan 21, 2025
2 parents 172a0be + e09f74e commit 67581c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/login.php
Original file line number Diff line number Diff line change
Expand Up @@ -525,8 +525,8 @@ function pmpro_login_forms_handler( $show_menu = true, $show_logout_link = true,

<?php
}
} elseif ( $location !== 'widget' && ( $action === 'reset_pass' || ( $action === 'rp' && in_array( $_REQUEST['login'], array( 'invalidkey', 'expiredkey' ) ) ) ) ) {
// Reset password form.
} elseif ( $location !== 'widget' && ( $action === 'reset_pass' || ( $action === 'rp' && isset( $_REQUEST['error'] ) && in_array( $_REQUEST['error'], array( 'invalidkey', 'expiredkey' ) ) ) ) ) {
// Reset password form.
?>
<div class="<?php echo esc_attr( pmpro_get_element_class( 'pmpro_card pmpro_lost_password_wrap', 'pmpro_lost_password_wrap' ) ); ?>">
<?php
Expand Down

0 comments on commit 67581c3

Please sign in to comment.