AuthenticationService.js
611 Bytes
AIA.factory('AuthenticationService',function() {
return {
authenticateUser:function(userName,Password) {
alert('called service');
return true;
}
};
AuthenticationService.$inject = ['$http', '$cookieStore', '$rootScope', '$timeout'];
function AuthenticationService($http, $cookieStore, $rootScope, $timeout, UserService) {
var service = {};
$http.post('/api/authenticate', { username: username, password: password })
.success(function (response) {
callback(response);
});
}
});