diff options
author | Dave Arter <davea@mysociety.org> | 2018-05-02 16:45:04 +0100 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2018-05-03 14:44:36 +0100 |
commit | 491bda2d37f0a7970aa939a70d5c741bbed41512 (patch) | |
tree | 1f3e108291ca5e777786a23bb96b9625b852c530 /www/js/config.js-example | |
parent | 701aa5f29d52a482b8ef5afc49301b45ea09c1a1 (diff) |
Add CONFIG.PASSWORD_MIN_LENGTH flag & validation
Diffstat (limited to 'www/js/config.js-example')
-rw-r--r-- | www/js/config.js-example | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/www/js/config.js-example b/www/js/config.js-example index 6be0250..66e0ed8 100644 --- a/www/js/config.js-example +++ b/www/js/config.js-example @@ -69,7 +69,15 @@ var CONFIG = { // If the user is logged in and this setting is true, the 'Your details' // page is skipped and the report is sent immediately after the report // details have been entered. - SKIP_CONFIRM_REPORT: false + SKIP_CONFIRM_REPORT: false, + + // You can optionally enforce a minimum password length if the user is + // registering an account when submitting a report. This should match the + // same minimum length required by your FixMyStreet server. + // Set this to 0 if you wish to disable this check. NB: If the check is + // active on the server the user's password may still be rejected if it's + // too short. + PASSWORD_MIN_LENGTH: 6 }; |