diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2008-01-27 20:00:46 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2008-01-27 20:00:46 +0000 |
commit | a44341a82281a3a55f7122b109931c6b56f6dfb2 (patch) | |
tree | 69376f5dd0948e1f14a48ea7017f8c62188ce0de /modules | |
parent | d40bb1e98df3e347b12e56a8f0134255086f0464 (diff) | |
download | brdo-a44341a82281a3a55f7122b109931c6b56f6dfb2.tar.gz brdo-a44341a82281a3a55f7122b109931c6b56f6dfb2.tar.bz2 |
#208888 by jvandyk: set access time when externally authenticated user first logs in
Diffstat (limited to 'modules')
-rw-r--r-- | modules/user/user.module | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/modules/user/user.module b/modules/user/user.module index 08b94e3cd..3b0a1632e 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -324,7 +324,7 @@ function user_save($account, $array = array(), $category = 'account') { // must abort to avoid overwirting their account. return FALSE; } - + // Build the initial user object. $array['uid'] = db_last_insert_id('users', 'uid'); $user = user_load(array('uid' => $array['uid'])); @@ -1361,7 +1361,14 @@ function user_external_login_register($name, $module) { $user = user_load(array('name' => $name)); if (!isset($user->uid)) { // Register this new user. - $userinfo = array('name' => $name, 'pass' => user_password(), 'init' => $name, 'status' => 1, "authname_$module" => $name); + $userinfo = array( + 'name' => $name, + 'pass' => user_password(), + 'init' => $name, + 'status' => 1, + "authname_$module" => $name, + 'access' => time() + ); $account = user_save('', $userinfo); // Terminate if an error occured during user_save(). if (!$account) { |