|
|
|
|
@ -71,7 +71,7 @@ class UserManagement implements WorkflowInterface
|
|
|
|
|
$html .= "</form></div>";
|
|
|
|
|
|
|
|
|
|
$values = [
|
|
|
|
|
"%frm" => $this->ri->formProps("unenroll"),
|
|
|
|
|
"%frm" => $this->request->formProps("unenroll"),
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
return \str_replace(\array_keys($values), $values, $html);
|
|
|
|
|
@ -106,7 +106,7 @@ class UserManagement implements WorkflowInterface
|
|
|
|
|
$this->clock,
|
|
|
|
|
$this->hash
|
|
|
|
|
);
|
|
|
|
|
$flag = $totp.validate($this->ri->getResp("totp_challenge"));
|
|
|
|
|
$flag = $totp.validate($this->request->getResp("totp_challenge"));
|
|
|
|
|
|
|
|
|
|
if($flag && $enrollFlag)
|
|
|
|
|
{
|
|
|
|
|
|