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