49,13 → 49,11 |
} |
|
/** |
* @param string $actionID |
* @param array $params |
* @return array |
* @throws OIDplusException |
*/ |
public function action(string $actionID, array $params): array { |
if ($actionID == 'get_challenge') { |
private function action_GetChallenge(array $params): array { |
$offset = 0; // doesn't matter |
$min = $offset; |
$max = $offset + OIDplus::baseConfig()->getValue('VTS_CAPTCHA_COMPLEXITY', 50000); |
79,6 → 77,17 |
// Autosolve on=calculate result on page load; off=calculate result on form submit |
"autosolve" => OIDplus::baseConfig()->getValue('VTS_CAPTCHA_AUTOSOLVE', true) |
); |
} |
|
/** |
* @param string $actionID |
* @param array $params |
* @return array |
* @throws OIDplusException |
*/ |
public function action(string $actionID, array $params): array { |
if ($actionID == 'get_challenge') { |
return $this->action_GetChallenge($params); |
} else { |
return parent::action($actionID, $params); |
} |