From ce3542d8ab0b9baad24f72dd39da0a62ab713b8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Thu, 13 Dec 2007 12:53:47 +0000 Subject: #152497 by JohnAlbin, bdragon, moshe weitzman, chx and myself: several user login tasks, such as session id regeneration were not performed in all cases, so centralize this --- modules/blogapi/blogapi.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/blogapi') diff --git a/modules/blogapi/blogapi.module b/modules/blogapi/blogapi.module index 22e15dda4..9e0e0a0cd 100644 --- a/modules/blogapi/blogapi.module +++ b/modules/blogapi/blogapi.module @@ -507,7 +507,7 @@ function blogapi_error($message) { function blogapi_validate_user($username, $password) { global $user; - $user = user_authenticate($username, $password); + $user = user_authenticate(array('name' => $username, 'pass' => $password)); if ($user->uid) { if (user_access('edit own blog', $user)) { -- cgit v1.2.3