function bakery_taste_thinmint_cookie in Bakery Single Sign-On System 6.2
Verify the validation request.
1 string reference to 'bakery_taste_thinmint_cookie'
- bakery_menu in ./
bakery.module - Implementation of hook_menu().
File
- ./
bakery.module, line 1309
Code
function bakery_taste_thinmint_cookie() {
$type = 'thinmint';
if (empty($_POST[$type])) {
return FALSE;
}
if (($cookie = bakery_validate_data($_POST[$type], $type)) === FALSE) {
return FALSE;
}
$_SESSION['bakery']['name'] = $cookie['name'];
$_SESSION['bakery']['slave'] = $cookie['slave'];
$_SESSION['bakery']['uid'] = $cookie['uid'];
return TRUE;
}