Lines Matching refs:data
78 // Note: with FastCGI, data is in REDIRECT_HTTP_AUTHORIZATION instead of HTTP_AUTHORIZATION
334 * Builds a pseudo UID from browser and IP data
427 * Encrypt data using the given secret using AES
432 * @param string $data The data that shall be encrypted
437 function auth_encrypt($data, $secret)
450 return $cipher->encrypt($iv . $data);
458 * @param string $ciphertext The encrypted data
460 * @return string|null The decrypted data
480 * This clears all authentication data and thus log the user
481 * off. It also clears session data.
485 * @param bool $keepbc - when true, the breadcrumb data is not cleared
689 $data = [
695 return Event::createAndTrigger('AUTH_ACL_CHECK', $data, 'auth_aclcheck_cb');
705 * @param array $data event data
708 function auth_aclcheck_cb($data)
710 $id =& $data['id'];
711 $user =& $data['user'];
712 $groups =& $data['groups'];
896 $data = [
901 $evt = new Event('AUTH_PASSWORD_GENERATE', $data);
910 $data['password'] .= $c[auth_random(0, strlen($c) - 1)];
911 $data['password'] .= $v[auth_random(0, strlen($v) - 1)];
912 $data['password'] .= $a[auth_random(0, strlen($a) - 1)];
915 $data['password'] .= $s[auth_random(0, strlen($s) - 1)] . auth_random(10, 99);
919 return $data['password'];
1110 // update cookie and session with the changed data
1345 * Set the authentication cookie and add user identification data to the session