Add password length requirements
This commit is contained in:
parent
655fedbbad
commit
6456852e87
1 changed files with 5 additions and 3 deletions
|
@ -10,6 +10,8 @@ $(function() {
|
|||
$('.ui.form').form({
|
||||
fields: {
|
||||
'user-email' : 'email',
|
||||
'user-password' : ['minLength[8]', 'empty'],
|
||||
'user-password-repeat' : ['minLength[8]', 'empty'],
|
||||
match : {
|
||||
identifier : 'user-password-repeat',
|
||||
depends : 'user-password',
|
||||
|
@ -19,7 +21,7 @@ $(function() {
|
|||
prompt : text.form_profile_password
|
||||
}
|
||||
]
|
||||
},
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue