示例#1
0
 /**
  * Sets the CSRF secret used in all new CSRF protected forms
  *
  * @param string $secret
  */
 public static function setDefaultCsrfSecret($secret)
 {
     self::$defaultCsrfSecret = $secret;
 }
示例#2
0
 /**
  * Clears the default CSRF secrets.
  */
 public static function clearDefaultCsrfSecrets()
 {
     self::$defaultCsrfSecrets = array();
 }
 /**
  * Sets the default CSRF secrets to be used in all new CSRF protected forms
  *
  * @param array $secrets
  */
 public static function setDefaultCsrfSecrets(array $secrets)
 {
     self::$defaultCsrfSecrets = $secrets;
 }