From 334f24b44893bdce0550ff4741d5609c73572113 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 14 Aug 2004 07:00:27 +0000 Subject: - Patch by James: made the blogapi work with DA. * Refactored the "brains" of user_login() to user_authenticate($user, $pass) so that blogapi (and others) can authenticate users (including those using DistAuth) without all the html and drupal_goto calls * Updates blogapi_validate_user to use user_authenticate. --- modules/blogapi/blogapi.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/blogapi/blogapi.module') diff --git a/modules/blogapi/blogapi.module b/modules/blogapi/blogapi.module index 8a3801495..83a55c493 100644 --- a/modules/blogapi/blogapi.module +++ b/modules/blogapi/blogapi.module @@ -422,7 +422,7 @@ function blogapi_error($message) { function blogapi_validate_user($username, $password) { global $user; - $user = user_load(array('name' => $username, 'pass' => $password, 'status' => 1)); + $user = user_authenticate($username, $password); if ($user->uid) { if (user_access('edit own blog')) { -- cgit v1.2.3