function bakery_profile_eat_thinmint_cookie in Bakery Single Sign-On System 7.4
Update the user's login time to reflect them validating their email address.
1 string reference to 'bakery_profile_eat_thinmint_cookie'
- bakery_profile_menu in ./
bakery_profile.module - Implements hook_menu().
File
- ./
bakery_profile.module, line 205
Code
function bakery_profile_eat_thinmint_cookie() {
// Session was set in validate.
$name = $_SESSION['bakery']['name'];
unset($_SESSION['bakery']['name']);
$slave = $_SESSION['bakery']['slave'];
unset($_SESSION['bakery']['slave']);
$uid = $_SESSION['bakery']['uid'];
unset($_SESSION['bakery']['uid']);
$account = user_load_by_name($name);
if ($account) {
// @todo
db_query("UPDATE {users} SET login = :login WHERE uid = :uid", array(
':login' => $_SERVER['REQUEST_TIME'],
':uid' => $account->uid,
));
// Save UID provided by slave site.
_bakery_save_slave_uid($account, $slave, $uid);
}
}