1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-05-26 04:38:12 +03:00

fix validation passwords

This commit is contained in:
Mzhelskiy Maxim 2017-02-20 18:50:51 +07:00
parent e4be8c3485
commit b6d4e6c6d8

View file

@ -26,7 +26,7 @@
{component 'field' template='text' {component 'field' template='text'
name = 'password' name = 'password'
type = 'password' type = 'password'
rules = [ 'required' => true, 'minlength' => '5' ] rules = [ 'required' => true, 'minlength' => '5', 'trigger' => 'input' ]
label = $aLang.auth.labels.password label = $aLang.auth.labels.password
inputClasses = 'js-input-password-reg'} inputClasses = 'js-input-password-reg'}
@ -34,7 +34,7 @@
{component 'field' template='text' {component 'field' template='text'
name = 'password_confirm' name = 'password_confirm'
type = 'password' type = 'password'
rules = [ 'required' => true, 'minlength' => '5', 'equalto' => '.js-input-password-reg', 'equalto-message' => {lang 'auth.registration.notices.error_password_equal'} ] rules = [ 'required' => true, 'minlength' => '5', 'trigger' => 'input', 'equalto' => '.js-input-password-reg', 'equalto-message' => {lang 'auth.registration.notices.error_password_equal'} ]
label = $aLang.auth.registration.form.fields.password_confirm.label} label = $aLang.auth.registration.form.fields.password_confirm.label}
{* Каптча *} {* Каптча *}