aboutsummaryrefslogtreecommitdiffstats
path: root/www/js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js')
-rw-r--r--www/js/strings.js1
-rw-r--r--www/js/views/submit.js9
2 files changed, 7 insertions, 3 deletions
diff --git a/www/js/strings.js b/www/js/strings.js
index 08e2cd0..5fed1d2 100644
--- a/www/js/strings.js
+++ b/www/js/strings.js
@@ -23,6 +23,7 @@
login_error: 'There was a problem logging you in. Please try later',
logout_error: 'There was a problem logging you out. Please try later',
login_details_error: 'There was a problem logging you in. Please check your email and password',
+ password_problem: 'There was a problem with your email/password combination',
location_error: 'Location error',
location_problem: 'There was a problem looking up your location',
multiple_locations: 'More than one location matched that name',
diff --git a/www/js/views/submit.js b/www/js/views/submit.js
index 654fb01..9060e46 100644
--- a/www/js/views/submit.js
+++ b/www/js/views/submit.js
@@ -78,10 +78,13 @@
var errors = err.errors;
var errorList = '<ul><li class="plain">Invalid report</li>';
for ( var k in errors ) {
- // FIXME! to stop jslint complaining for now
- if ( k !== '' ) {
- errorList += '<li>' + errors[k] + '</li>';
+ error = '';
+ if ( k === 'password' ) {
+ error = FMS.strings.password_problem;
+ } else {
+ error = errors[k];
}
+ errorList += '<li>' + error + '</li>';
}
errorList += '</ul>';
$('#errors').html(errorList).show();