function shib_auth_consent_update in Shibboleth Authentication 6.4
Same name and namespace in other branches
- 7.4 shib_auth.module \shib_auth_consent_update()
This function updates the accepted consent version number of the user to the current one
1 call to shib_auth_consent_update()
- shib_auth_init in ./
shib_auth.module - Create a new user based on informations from the Shibboleth handler if it's necessary or log in.
File
- ./
shib_auth.module, line 565 - Drupal Shibboleth authentication module.
Code
function shib_auth_consent_update($uname, $umail_single, $uid) {
$sql = "UPDATE {shib_authmap} SET consentver='%s' WHERE targeted_id='%s'";
$result = db_query($sql, shib_auth_config('terms_ver'), $uname);
shib_login_authmap($uname, $umail_single, $uid);
}