Example #1
0
 static function csrf($input)
 {
     $token = Session::csrfTokenGet();
     if ($input === $token) {
         Session::csrfTokenRemove();
         return true;
     } else {
         return false;
     }
 }