From bf9233401fbf5b05fb0a00cb00977b816b131632 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Sat, 18 Jan 2014 22:42:28 +0100 Subject: [PATCH] Fixed login error display --- inc/myco_objects.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/myco_objects.js b/inc/myco_objects.js index e00a998..9e6206f 100644 --- a/inc/myco_objects.js +++ b/inc/myco_objects.js @@ -354,7 +354,7 @@ function SyncServer() { function(data, textStatus) { console.log(data); if (textStatus=='success') { - if(jQuery.type(data.email) && jQuery.type(data.name)) { + if(jQuery.type(data.email) != 'undefined' && jQuery.type(data.name) != 'undefined') { console.log('Login success return'); console.log(onsuccess); onsuccess(data);