You are here

function bakery_taste_oatmeal_cookie in Bakery Single Sign-On System 6.2

Same name and namespace in other branches
  1. 7.2 bakery.module \bakery_taste_oatmeal_cookie()
4 calls to bakery_taste_oatmeal_cookie()
bakery_login in ./bakery.module
Special Bakery login callback authenticates the user and returns to slave.
bakery_login_return in ./bakery.module
Custom return for errors during slave login process.
bakery_register in ./bakery.module
Special Bakery register callback registers the user and returns to slave.
bakery_register_return in ./bakery.module
Custom return for slave registration process.

File

./bakery.module, line 1170

Code

function bakery_taste_oatmeal_cookie() {
  $key = variable_get('bakery_key', '');
  $type = _bakery_cookie_name('OATMEAL');
  if (!isset($_COOKIE[$type]) || !$key || !variable_get('bakery_domain', '')) {
    return FALSE;
  }
  if (($data = bakery_validate_data($_COOKIE[$type], $type)) !== FALSE) {
    return $data;
  }
  return FALSE;
}