function openid_user_login
Implements hook_user_login().
Save openid_identifier to visitor cookie.
File
-
modules/
openid/ openid.module, line 103
Code
function openid_user_login(&$edit, $account) {
if (isset($_SESSION['openid'])) {
// The user has logged in via OpenID.
user_cookie_save(array_intersect_key($_SESSION['openid']['user_login_values'], array_flip(array(
'openid_identifier',
))));
unset($_SESSION['openid']);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.