public function getCsrfToken() { $session = Edge::app()->session; if (!isset($session->csrfToken)) { $session->csrfToken = md5(\Edge\Utils\Utils::genRandom(10)); } return $session->csrfToken; }
public function generateAuthToken() { return md5(\Edge\Utils\Utils::genRandom(12)); }