summaryrefslogtreecommitdiff
path: root/modules/blogapi/blogapi.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-08-14 07:00:27 +0000
committerDries Buytaert <dries@buytaert.net>2004-08-14 07:00:27 +0000
commit334f24b44893bdce0550ff4741d5609c73572113 (patch)
treed5d22b42926789b2df198f5c030ef871a8c05cc9 /modules/blogapi/blogapi.module
parent064089a3fcb6991a3db98ae55bf4a1ad688a8782 (diff)
downloadbrdo-334f24b44893bdce0550ff4741d5609c73572113.tar.gz
brdo-334f24b44893bdce0550ff4741d5609c73572113.tar.bz2
- 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.
Diffstat (limited to 'modules/blogapi/blogapi.module')
-rw-r--r--modules/blogapi/blogapi.module2
1 files changed, 1 insertions, 1 deletions
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')) {