Closed agualbbus closed 8 years ago
+1 :)
You make use manual login method:
angular
.module('myApp')
.controller(['$scope', '$http', '$security', function ($scope, $http, $security) {
$scope.username = 'admin';
$scope.password = 'admin';
$scope.authenticate = function () {
$http.post('/api/auth', {
username: $scope.username,
password: $scope.password
}).success(function (data) {
$security.login(data.id);
});
}
}]);
How can I set up a different response API? for example: