Fix password reset

parent 295f0294
...@@ -167,8 +167,6 @@ if(!class_exists('SexhackPmsPasswordDataLeak')) { ...@@ -167,8 +167,6 @@ if(!class_exists('SexhackPmsPasswordDataLeak')) {
else else
$username_email = sanitize_text_field( $_POST['pms_username_email'] ); $username_email = sanitize_text_field( $_POST['pms_username_email'] );
if( empty( $username_email ) ) if( empty( $username_email ) )
pms_errors()->add( 'pms_username_email', __( 'Please enter a username or email address.', 'paid-member-subscriptions' ) ); pms_errors()->add( 'pms_username_email', __( 'Please enter a username or email address.', 'paid-member-subscriptions' ) );
else { else {
...@@ -189,6 +187,7 @@ if(!class_exists('SexhackPmsPasswordDataLeak')) { ...@@ -189,6 +187,7 @@ if(!class_exists('SexhackPmsPasswordDataLeak')) {
} }
else $error=true; else $error=true;
} }
} }
// Extra validation // Extra validation
......
...@@ -170,9 +170,9 @@ function send_changepwd_mail($user_login, $baseurl=false){ ...@@ -170,9 +170,9 @@ function send_changepwd_mail($user_login, $baseurl=false){
$key = pms_retrieve_activation_key( $user_login ); $genkey = pms_retrieve_activation_key( $user_login );
//$key = get_password_reset_key( $user_data ); do_action( 'retrieve_password_key', $user_login, $genkey );
do_action( 'retrieve_password_key', $user_login, $key ); $key = get_password_reset_key( $user_data );
//if ( empty( $wp_hasher ) ) { //if ( empty( $wp_hasher ) ) {
// require_once ABSPATH . 'wp-includes/class-phpass.php'; // require_once ABSPATH . 'wp-includes/class-phpass.php';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment