diff options
| author | Yoggzo <yogg@epsina.com> | 2016-02-04 23:54:00 +0100 |
|---|---|---|
| committer | Yoggzo <yogg@epsina.com> | 2016-02-04 23:54:00 +0100 |
| commit | ae8e5e7d1c1c4a15ab4d7bd5045b31556feb17de (patch) | |
| tree | 90352502aa1346f011348e692507239aaa7db2d7 /client/js/requests/identity.js | |
| parent | ab6e45d5e152518fd07c7bbce6f5eb2f42b30e07 (diff) | |
| parent | b39f5c1cd4631be3259b272e1f6cbe9b4915410b (diff) | |
Merge branch 'develop' into Evan
mise a jour de la branche
Diffstat (limited to 'client/js/requests/identity.js')
| -rw-r--r-- | client/js/requests/identity.js | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/client/js/requests/identity.js b/client/js/requests/identity.js new file mode 100644 index 0000000..cad1261 --- /dev/null +++ b/client/js/requests/identity.js @@ -0,0 +1,42 @@ + +// Make Namespace +var identity = {} ; + + + + + + +/* +mainApp.controller('identityCtrl', function($scope, $http) { + + $scope.identityFormData = {}; + + $scope.processForm = function() { + + $http({ + method : 'POST', + url : 'http://148.60.11.31/', + data : $.param($scope.identityFormData), + headers : { 'Content-Type': 'application/x-www-form-urlencoded' } + }) + .success(function(data) { + console.log(data); + + if (!data.success) { + // if not successful, bind errors to error variables + //$scope.errorName = data.errors.name; + //$scope.errorSuperhero = data.errors.superheroAlias; + } else { + // if successful, bind success message to message + //$scope.message = data.message; + } + }); + }; + + + +});*/ + + + |
