Codex tools: Log in
Checks a user's login information and logs them in if it checks out.
Errors can be verified with is_wp_error()
is_wp_error()
Since: 2.5.0
wp_authenticate() is located in wp-includes/pluggable.php
wp-includes/pluggable.php