Hi Luke Thank you very much for this. Verry silly mistake
On Friday, April 4, 2014 1:00:47 AM UTC-4, Luke Kende wrote:
Not sure why you are using type=submit here since ultimately your are
going to authenticate via $http but, that issue aside, you are setting your
login to the result of
Hi Sander,
No this makes perfect sense. I had been starting at this code for too long
so when I posted this last night I just walked away from it and needed a
second eye. That is why paired programming works I guess lol
Here is my OLD logic that I had using jquery...
$scope.login =
Hi Billy,
the way you set up your login function makes sure the request fires
directly!
change it to this:
$scope.login = function() {
AuthFactory.authenticate($scope.loginData).then(function(response) {
console.log(response.status);
Not sure why you are using type=submit here since ultimately your are
going to authenticate via $http but, that issue aside, you are setting your
login to the result of calling the authenticate function hence as soon as
the controller is loaded it is executing the function.
Try this: