diff --git a/src/ng-token-auth.coffee b/src/ng-token-auth.coffee index b1979f60..c2dd7ffb 100644 --- a/src/ng-token-auth.coffee +++ b/src/ng-token-auth.coffee @@ -221,6 +221,7 @@ angular.module('ng-token-auth', ['ipCookie']) @rejectDfd({ reason: 'unauthorized' errors: ['Invalid credentials'] + data: resp }) $rootScope.$broadcast('auth:login-error', resp) )