mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-26 03:30:48 +03:00
fix login capcha
This commit is contained in:
parent
d142237439
commit
9b54d2c8e5
|
@ -32,7 +32,7 @@ class ModuleUser_EntityUser extends Entity {
|
|||
$this->aValidateRules[] = array('captcha', 'captcha', 'on' => array('registration'));
|
||||
}
|
||||
|
||||
if (Config::Get('general.sign.in.captcha')){
|
||||
if (Config::Get('general.login.captcha')){
|
||||
$this->aValidateRules[] = array('captcha', 'captcha', 'on' => array('signIn'));
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
sFieldRules = 'required="true" rangelength="[2,20]"'
|
||||
sFieldLabel = $aLang.user_password}
|
||||
{* Каптча *}
|
||||
{if $oConfig->GetValue('general.reg.login.captcha')}
|
||||
{if $oConfig->GetValue('general.login.captcha')}
|
||||
{include file='forms/form.field.captcha.tpl'
|
||||
sFieldName = 'captcha'
|
||||
sFieldLabel = $aLang.registration_captcha}
|
||||
|
|
|
@ -23,8 +23,8 @@
|
|||
* @scripts <framework>/js/livestreet/captcha.js
|
||||
*}
|
||||
|
||||
{if $oConfig->GetValue('general.reg.login.captcha')}
|
||||
{hookb run="registration_captcha" isPopup=$isModal}
|
||||
{if $oConfig->GetValue('general.login.captcha')}
|
||||
{hookb run="login_captcha" isPopup=$isModal}
|
||||
<p class="form-login-field-captcha"><label for="js-form-login-captcha">{$aLang.registration_captcha}</label>
|
||||
<span {if ! $isModal}style="background-image: url({cfg name='path.framework.libs_vendor.web'}/kcaptcha/index.php?{$_sPhpSessionName}={$_sPhpSessionId});"{/if} class="form-auth-captcha js-form-auth-captcha"></span>
|
||||
<input type="text" name="captcha" value="" maxlength="3" id="js-form-login-captcha" class="width-100 js-ajax-validate js-form-login-captcha" />
|
||||
|
|
Loading…
Reference in a new issue