function bakery_taste_gingerbread_cookie in Bakery Single Sign-On System 6.2
Same name and namespace in other branches
- 7.2 bakery.module \bakery_taste_gingerbread_cookie()
Validate the account information request.
1 string reference to 'bakery_taste_gingerbread_cookie'
- bakery_menu in ./
bakery.module - Implementation of hook_menu().
File
- ./
bakery.module, line 1430
Code
function bakery_taste_gingerbread_cookie() {
$type = 'gingerbread';
if (empty($_POST[$type])) {
return FALSE;
}
if (($cookie = bakery_validate_data($_POST[$type], $type)) === FALSE) {
return FALSE;
}
$_SESSION['bakery']['name'] = $cookie['name'];
$_SESSION['bakery']['or_email'] = $cookie['or_email'];
$_SESSION['bakery']['slave'] = $cookie['slave'];
$_SESSION['bakery']['uid'] = $cookie['uid'];
return TRUE;
}