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 committed by MaxBUhe
parent 4e038ef885
commit 3d0025cbc9
2 changed files with 3 additions and 10 deletions

View File

@ -36,13 +36,4 @@ class oeUserComponent extends oeUserComponent_parent
return parent::createUser(); 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}] [{$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}]