Add password length requirements

This commit is contained in:
Jay Trees 2022-04-07 11:37:44 +02:00
parent 655fedbbad
commit 6456852e87

View file

@ -9,8 +9,10 @@ $(function() {
$('.ui.form').form({
fields: {
'user-email' : 'email',
match : {
'user-email' : 'email',
'user-password' : ['minLength[8]', 'empty'],
'user-password-repeat' : ['minLength[8]', 'empty'],
match : {
identifier : 'user-password-repeat',
depends : 'user-password',
rules : [
@ -19,7 +21,7 @@ $(function() {
prompt : text.form_profile_password
}
]
},
}
}
});