diff options
author | Struan Donald <struan@exo.org.uk> | 2012-06-06 17:10:42 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-06-06 17:10:42 +0100 |
commit | 9176bde30d895a2eee6cd5b2c8213f1619df026f (patch) | |
tree | e114a488c67321d3d634670f20ad02a21bbce57e | |
parent | f992ba4a3daba72eed49366c087bcd4b37afca61 (diff) |
display error for failed sign in
-rw-r--r-- | phonegap/www/js/mobile.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/phonegap/www/js/mobile.js b/phonegap/www/js/mobile.js index b23be32b8..ec3a9c118 100644 --- a/phonegap/www/js/mobile.js +++ b/phonegap/www/js/mobile.js @@ -316,13 +316,14 @@ function sign_in() { remember_me: 1 }, success: function(data) { + console.log(data); if ( data.name ) { localStorage.name = data.name; window.location = 'signed_in.html'; $('#sign_out').show(); $('#sign_in').hide(); } else { - alert('Sign in Failed :('); + $('#form_email').before('<div class="form-error">There was a problem with your email/password combination.</div>'); } } } ); |