From 3e201f8d48554ab8c4b8132eaa50b5fe7dd1d67e Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Thu, 1 Feb 2018 14:37:35 +0000 Subject: Add length/common password checking. --- web/js/validation_rules.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'web/js/validation_rules.js') diff --git a/web/js/validation_rules.js b/web/js/validation_rules.js index 5295a53ca..e6d745336 100644 --- a/web/js/validation_rules.js +++ b/web/js/validation_rules.js @@ -1,5 +1,11 @@ validation_rules = { title: { required: true }, detail: { required: true }, - update: { required: true } + update: { required: true }, + password_register: { + remote: { + url: '/auth/common_password', + type: 'post' + } + } }; -- cgit v1.2.3