Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0bb3081

Browse files
julianjelfswitoldsz
authored andcommitted
cherry-pick: Added ability to pass data along with login confirmation
This is quite useful if you want to listen out for login confirmation and have access to *who* logged in (for presentation purposes) Conflicts: src/angular-http-auth.js
1 parent 3a2cb29 commit 0bb3081

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/http-auth-interceptor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
.factory('authService', ['$rootScope','httpBuffer', function($rootScope, httpBuffer) {
1414
return {
15-
loginConfirmed: function() {
16-
$rootScope.$broadcast('event:auth-loginConfirmed');
15+
loginConfirmed: function(data) {
16+
$rootScope.$broadcast('event:auth-loginConfirmed', data);
1717
httpBuffer.retryAll();
1818
}
1919
};

0 commit comments

Comments
 (0)