Fix password reset

parent 295f0294
......@@ -167,8 +167,6 @@ if(!class_exists('SexhackPmsPasswordDataLeak')) {
else
$username_email = sanitize_text_field( $_POST['pms_username_email'] );
if( empty( $username_email ) )
pms_errors()->add( 'pms_username_email', __( 'Please enter a username or email address.', 'paid-member-subscriptions' ) );
else {
......@@ -189,6 +187,7 @@ if(!class_exists('SexhackPmsPasswordDataLeak')) {
}
else $error=true;
}
}
// Extra validation
......
......@@ -170,9 +170,9 @@ function send_changepwd_mail($user_login, $baseurl=false){
$key = pms_retrieve_activation_key( $user_login );
//$key = get_password_reset_key( $user_data );
do_action( 'retrieve_password_key', $user_login, $key );
$genkey = pms_retrieve_activation_key( $user_login );
do_action( 'retrieve_password_key', $user_login, $genkey );
$key = get_password_reset_key( $user_data );
//if ( empty( $wp_hasher ) ) {
// 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