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

@ -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
}
]
},
}
}
});