On this page
function openid_user_insert
openid_user_insert(&$edit, $account, $category)
Implements hook_user_insert().
File
- modules/openid/openid.module, line 86
- Implement OpenID Relying Party support for Drupal
Code
function openid_user_insert(&$edit, $account, $category) {
if (!empty($edit['openid_claimed_id'])) {
// The user has registered after trying to log in via OpenID.
if (variable_get('user_email_verification', TRUE)) {
drupal_set_message(t('Once you have verified your e-mail address, you may log in via OpenID.'));
}
user_set_authmaps($account, array('authname_openid' => $edit['openid_claimed_id']));
unset($_SESSION['openid']);
unset($edit['openid_claimed_id']);
}
}
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!openid!openid.module/function/openid_user_insert/7.x