Improve password validation

This commit is contained in:
Jay Trees 2022-03-23 10:52:34 +01:00
parent d4e5674753
commit 587bf67805

View file

@ -8,13 +8,13 @@ $(function() {
$('.ui.form').form({
fields: {
'user-email' : 'email',
'user-password' : ['minLength[8]'],
match : {
identifier : 'user-password-repeat',
depends : 'user-password',
rules : [
{
type : ['minLength[8]','match[user-password]'],
type : 'match[user-password]',
prompt : text.form_profile_password
}
]