wp user pass : auto update by wp_set_password()

wp-includes/pluggable.php function wp_check_password($password, $hash, $user_id = '') { global $wp_hasher, $wpdb; //owl if (substr($hash,0,1)=="*") { $tmpPWDs = $wpdb->get_results( "SELECT password('".$password."') as pwd" ); $mysqlPWD = ""; foreach ( $tmpPWDs as $tmpPWD ) { $mysqlPWD = $tmpPWD->pwd; } $check = hash_equals( $hash, $mysqlPWD ); if ( $check && $user_id ) { wp_set_password($password, $user_id); $hash = wp_hash_password($password); […]

Read More