You are here

function bakery_profile_taste_stroopwafel_cookie in Bakery Single Sign-On System 7.4

Validate update request.

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

File

./bakery_profile.module, line 246

Code

function bakery_profile_taste_stroopwafel_cookie() {
  $type = 'stroopwafel';
  if (empty($_POST[$type])) {
    return FALSE;
  }
  if (($payload = bakery_validate_data($_POST[$type], $type)) === FALSE) {
    return FALSE;
  }
  $_SESSION['bakery'] = unserialize($payload['data']);
  $_SESSION['bakery']['uid'] = $payload['uid'];
  $_SESSION['bakery']['category'] = $payload['category'];
  return TRUE;
}