don't show and request captcha if user is logged in

This commit is contained in:
Daniel Seifert 2023-07-18 11:41:31 +02:00
parent 0dbb8fb6e3
commit 91d21f7f07
Signed by: DanielS
GPG Key ID: 8A7C4C6ED1915C6F
2 changed files with 3 additions and 10 deletions

View File

@ -36,13 +36,4 @@ class oeUserComponent extends oeUserComponent_parent
return parent::createUser();
}
public function changeuser_testvalues()
{
if (!$this->getCaptcha()->passCaptcha()) {
return false;
}
return parent::changeuser_testvalues();
}
}

View File

@ -1,3 +1,5 @@
[{$smarty.block.parent}]
[{include file="oecaptcha_wave.tpl" labelCssClass="col-lg-3" inputCssClass="col-lg-5"}]
[{if !$oxcmp_user}]
[{include file="oecaptcha_wave.tpl" labelCssClass="col-lg-3" inputCssClass="col-lg-5"}]
[{/if}]