aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/validation_rules.js
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2019-07-29 17:30:56 +0100
committerStruan Donald <struan@exo.org.uk>2019-08-02 09:38:05 +0100
commit6dc425da8743d68a10edc778dc36593e9b754ed8 (patch)
treef912f3289c0ab3213d72fc775020c944b7efa5ad /web/js/validation_rules.js
parentc21d5b650fcd7e5b745461628b5eb48c1f22ac23 (diff)
prevent including email address in report title
If autofill on Chrome is turned on and has saved the user's login it can autofill the user's email address in the report title, so add validation to make sure the title does not look like an email. Fixes #2570
Diffstat (limited to 'web/js/validation_rules.js')
-rw-r--r--web/js/validation_rules.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/js/validation_rules.js b/web/js/validation_rules.js
index 3e7b010f2..9044def73 100644
--- a/web/js/validation_rules.js
+++ b/web/js/validation_rules.js
@@ -1,5 +1,5 @@
core_validation_rules = {
- title: { required: true },
+ title: { required: true, notEmail: true },
detail: { required: true },
update: { required: true },
password_register: {