Hi,
the tutorial The Authenticated App With AngularJS + DreamFactory User Management Part Two
shows how to deal with a successful login using
$scope.$on(UserEventsService.login.loginSuccess, function (e, userDataObj) {
$scope.$parent.currentUser = userDataObj;
$location.url('/');
});
but I didn’t find the right way to manage UserEventsService.login.loginError
Do you have a snippet regarding this case? Thanks.