Skip to content
Snippets Groups Projects

one time token for slow down attack

Closed sunil requested to merge sunil/firewall:one_time_token_2 into master
12 files
+ 655
14
Compare changes
  • Side-by-side
  • Inline
Files
12
+ 26
0
<?php
use CRM_Firewall_ExtensionUtil as E;
class CRM_Firewall_BAO_FirewallOnetimetoken extends CRM_Firewall_DAO_FirewallOnetimetoken {
/**
* Create a new FirewallOnetimetoken based on array-data
*
* @param array $params key-value pairs
* @return CRM_Firewall_DAO_FirewallOnetimetoken|NULL
*
public static function create($params) {
$className = 'CRM_Firewall_DAO_FirewallOnetimetoken';
$entityName = 'FirewallOnetimetoken';
$hook = empty($params['id']) ? 'create' : 'edit';
CRM_Utils_Hook::pre($hook, $entityName, CRM_Utils_Array::value('id', $params), $params);
$instance = new $className();
$instance->copyValues($params);
$instance->save();
CRM_Utils_Hook::post($hook, $entityName, $instance->id, $instance);
return $instance;
} */
}
Loading