Subversion Repositories SmartDukaan

Rev

Rev 23108 | Rev 23181 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 23108 Rev 23173
Line 157... Line 157...
157
        url : context+"/login",
157
        url : context+"/login",
158
        dataType: 'json',
158
        dataType: 'json',
159
        data: {"token":googleUser.getAuthResponse().id_token},
159
        data: {"token":googleUser.getAuthResponse().id_token},
160
        success: function(data, textStatus, request){
160
        success: function(data, textStatus, request){
161
        	console.log(data);
161
        	console.log(data);
-
 
162
        	if(data.status){
162
        	addProfileInLocalDb();
163
        		addProfileInLocalDb();
163
        	window.location.href= data.redirectUrl;
164
        		window.location.href= data.redirectUrl;
-
 
165
        	}else{
-
 
166
        		alert("Retailer not found, Please login");
-
 
167
        	}
164
   		}
168
   		}
165
    });  
169
    });  
166
}
170
}
167
 
171
 
168
function addProfileInLocalDb(){
172
function addProfileInLocalDb(){