From 6456852e8702967fe3070339db490a9bc7494a72 Mon Sep 17 00:00:00 2001 From: Jay Trees Date: Thu, 7 Apr 2022 11:37:44 +0200 Subject: [PATCH] Add password length requirements --- src/assets/js/profile.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/assets/js/profile.js b/src/assets/js/profile.js index 301d0bf1..bc5da121 100644 --- a/src/assets/js/profile.js +++ b/src/assets/js/profile.js @@ -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 } ] - }, + } } });