GUAC-1176: Handle insufficient credentials distinctly from invalid credentials.

This commit is contained in:
Michael Jumper
2015-06-03 00:29:36 -07:00
parent 542c87d631
commit 7a3503a40e
5 changed files with 78 additions and 13 deletions

View File

@@ -160,7 +160,7 @@ angular.module('auth').factory('authenticationService', ['$injector',
else if (error.type === Error.Type.INSUFFICIENT_CREDENTIALS)
$rootScope.$broadcast('guacInsufficientCredentials', parameters, error.expected);
authenticationProcess.reject();
authenticationProcess.reject(error);
});
return authenticationProcess.promise;