function shib_auth_consent_update in Shibboleth Authentication 7.4
Same name and namespace in other branches
- 6.4 shib_auth.module \shib_auth_consent_update()
Updates the accepted consent version number of the user to the current one.
Parameters
string $uname: Username received from IdP.
string $umail_single: The first email address of the user from the IdP.
string $uid: Drupal UserID.
1 call to shib_auth_consent_update()
- shib_auth_init in ./
shib_auth.module - Creates a new user, if necessary, based on information from the handler.
File
- ./
shib_auth.module, line 691 - Drupal Shibboleth authentication module.
Code
function shib_auth_consent_update($uname, $umail_single, $uid) {
db_update('shib_authmap')
->fields(array(
'consentver' => shib_auth_config('terms_ver'),
))
->condition('targeted_id', $uname)
->execute();
shib_login_authmap($uname, $umail_single, $uid);
}