Fixed login error display

This commit is contained in:
Benjamin Renard 2014-01-18 22:42:28 +01:00
parent 9c8b4c18d3
commit bf9233401f

View file

@ -354,7 +354,7 @@ function SyncServer() {
function(data, textStatus) { function(data, textStatus) {
console.log(data); console.log(data);
if (textStatus=='success') { 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('Login success return');
console.log(onsuccess); console.log(onsuccess);
onsuccess(data); onsuccess(data);