summaryrefslogtreecommitdiff
path: root/modules/blogapi
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-12-13 12:53:47 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-12-13 12:53:47 +0000
commitce3542d8ab0b9baad24f72dd39da0a62ab713b8b (patch)
tree80570f61aad066de13bacaec06bef09384e78e32 /modules/blogapi
parent050008410d34a78d93cac155476d359669a3cad7 (diff)
downloadbrdo-ce3542d8ab0b9baad24f72dd39da0a62ab713b8b.tar.gz
brdo-ce3542d8ab0b9baad24f72dd39da0a62ab713b8b.tar.bz2
#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
Diffstat (limited to 'modules/blogapi')
-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 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)) {