Example #1
0
 /**
  *	Cookie Hash
  *	@return string
  */
 public function cookieHash(AuthedUserInterface $user)
 {
     $salt = $this->config()->get("auth")->get("cookie_hash", "8)pu1j[Juogi5263N6sS5s+fE5V/kw");
     return sha1($user->ID() . $salt . Session::ID());
 }