mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-26 03:30:48 +03:00
fix validation
This commit is contained in:
parent
83b3e4ffe8
commit
dfa5e56ce9
|
@ -142,6 +142,8 @@ class ActionAuth extends Action
|
|||
* Получаем ошибки
|
||||
*/
|
||||
$this->Viewer_AssignAjax('aErrors', $oUser->_getValidateErrors());
|
||||
$this->Message_AddErrorSingle(null);
|
||||
return;
|
||||
}
|
||||
}
|
||||
$this->Message_AddErrorSingle($this->Lang_Get('auth.login.notices.error_login'));
|
||||
|
|
|
@ -14,14 +14,14 @@
|
|||
{* Логин *}
|
||||
{component 'field' template='text'
|
||||
name = 'login'
|
||||
rules = [ 'required' => true, 'length' => '[2,20]' ]
|
||||
rules = [ 'required' => true, 'minlength' => '3' ]
|
||||
label = $aLang.auth.login.form.fields.login.label}
|
||||
|
||||
{* Пароль *}
|
||||
{component 'field' template='text'
|
||||
name = 'password'
|
||||
type = 'password'
|
||||
rules = [ 'required' => true, 'length' => '[2,20]' ]
|
||||
rules = [ 'required' => true, 'minlength' => '2' ]
|
||||
label = $aLang.auth.labels.password}
|
||||
|
||||
{* Каптча *}
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
{* Логин *}
|
||||
{component 'field' template='text'
|
||||
name = 'login'
|
||||
rules = [ 'required' => true, 'length' => '[2,20]', 'remote' => "{router page='auth'}ajax-validate-fields" ]
|
||||
rules = [ 'required' => true, 'minlength' => '3', 'remote' => "{router page='auth'}ajax-validate-fields" ]
|
||||
label = $aLang.auth.labels.login}
|
||||
|
||||
{* E-mail *}
|
||||
|
@ -24,7 +24,7 @@
|
|||
{component 'field' template='text'
|
||||
name = 'password'
|
||||
type = 'password'
|
||||
rules = [ 'required' => true, 'length' => '[5,20]' ]
|
||||
rules = [ 'required' => true, 'minlength' => '5' ]
|
||||
label = $aLang.auth.labels.password
|
||||
inputClasses = 'js-input-password-reg'}
|
||||
|
||||
|
@ -32,7 +32,7 @@
|
|||
{component 'field' template='text'
|
||||
name = 'password_confirm'
|
||||
type = 'password'
|
||||
rules = [ 'required' => true, 'length' => '[5,20]', 'equalto' => '.js-input-password-reg' ]
|
||||
rules = [ 'required' => true, 'minlength' => '5', 'equalto' => '.js-input-password-reg' ]
|
||||
label = $aLang.auth.registration.form.fields.password_confirm.label}
|
||||
|
||||
{* Каптча *}
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 9581df48c27a1dbd8ad64a79b2b8d0125518548e
|
||||
Subproject commit 136557e8a35a2e2f1e7de2182c2e56ffc859e8e6
|
Loading…
Reference in a new issue