mirror of
https://git.d3data.de/3rdParty/captcha-module.git
synced 2024-11-24 07:23:11 +01:00
don't show and request captcha if user is logged in
This commit is contained in:
parent
4e038ef885
commit
3d0025cbc9
@ -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();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -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}]
|
||||||
|
Loading…
Reference in New Issue
Block a user