Advertisements

user_pass_ok

Definition:
function user_pass_ok($user_login, $user_pass) {}

Check that the user login name and password is correct.

Parameters

  • string $user_login: User name.
  • string $user_pass: User password.

Return values

returns:False if does not authenticate, true if username and password authenticates.

Source code

function user_pass_ok($user_login, $user_pass) {

	$user = wp_authenticate($user_login, $user_pass);

	if ( is_wp_error($user) )

		return false;



	return true;

}

3299

Advertisements

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: