aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base/js
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-02-01 14:37:35 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-02-06 16:53:25 +0000
commit3e201f8d48554ab8c4b8132eaa50b5fe7dd1d67e (patch)
tree7b943b171bfbcdd74444d5a938291c69218ea027 /templates/web/base/js
parent35445b8cc7ae02acdfbfc3e2e9da15b022736906 (diff)
Add length/common password checking.
Diffstat (limited to 'templates/web/base/js')
-rw-r--r--templates/web/base/js/translation_strings.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/web/base/js/translation_strings.html b/templates/web/base/js/translation_strings.html
index ed95335a6..a2e3c16c5 100644
--- a/templates/web/base/js/translation_strings.html
+++ b/templates/web/base/js/translation_strings.html
@@ -1,4 +1,7 @@
[% FILTER collapse %]
+var fixmystreet = fixmystreet || {};
+fixmystreet.password_minimum_length = [% c.cobrand.password_minimum_length %];
+
translation_strings = {
update: '[% loc('Please enter a message') | replace("'", "\\'") %]',
title: '[% loc('Please enter a subject') | replace("'", "\\'") %]',
@@ -19,6 +22,9 @@
password_sign_in: {
required: '[% loc('Please enter a password') | replace("'", "\\'") %]'
},
+ password_register: {
+ short: '[% tprintf(loc('Please make sure your password is at least %d characters long'), c.cobrand.password_minimum_length) | replace("'", "\\'") %]',
+ },
phone: {
required: '[% loc('Please enter your phone number') | replace("'", "\\'") %]'
},