Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $http({
- method: 'POST',
- data: 'Username=' + $scope.user.email + '&Password=' + $scope.user.password + '&is_varified='+$scope.user.is_varified+'&gcm_reg_id='+gcm_reg_id,
- headers: {'Content-Type': 'application/x-www-form-urlencoded'},
- url: myService.ajax_base_url+'/login/validate_mobile_user'
- }).success(function(data, status, headers, config) {
- //console.log(data);
- alert('in success');
- if (data.is_valid && data.role_id == '5'){
- modal.hide();
- }).
- error(function(data, status, headers, config) {
- modal.hide();
- alert('in error');
- while login.');
- });
- $http.post('/someUrl', data, config).then(successCallback, errorCallback);
Add Comment
Please, Sign In to add comment