You are here

function bakery_profile_taste_thinmint_cookie in Bakery Single Sign-On System 7.4

Verify the validation request.

1 string reference to 'bakery_profile_taste_thinmint_cookie'
bakery_profile_menu in ./bakery_profile.module
Implements hook_menu().

File

./bakery_profile.module, line 188

Code

function bakery_profile_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;
}