Codex tools: Log in
This function can be replaced via plugins. If plugins do not redefine these functions, then this will be used instead.
Checks the plaintext password against the encrypted Password.
Maintains compatibility between old version and the new cookie authentication protocol using PHPass library. The $hash parameter is the encrypted password and the function compares the plain text password when encypted similarly against the already encrypted password to see if they match.
For integration with other applications, this function can be overwritten to instead use the other package password checking algorithm.
<?php wp_check_password( $password, $hash, $user_id ) ?>
$user = get_user_by( 'login', $username ); if ( $user && wp_check_password( $pass, $user->data->user_pass, $user->ID) ) echo "That's it"; else echo "Nope";
wp_check_password() is located in