Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit c9db757

Browse files
committed
Fixed logout temp
1 parent 3272ce2 commit c9db757

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

app/services/tcAuth.service.js

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -172,19 +172,20 @@
172172
}
173173
};
174174

175-
// remove local token
176-
AuthTokenService.removeTokens();
177-
$rootScope.$broadcast(CONSTANTS.EVENT_USER_LOGGED_OUT);
178175

179176
// logout of all browsers
180177
return $q(function(resolve, reject) {
181-
$http(logoutOptions).then(function(res) {
182-
$log.log('logout successful');
183-
resolve();
184-
}).catch(function(resp) {
185-
$log.error('logout error');
186-
reject();
187-
});
178+
// remove local token
179+
AuthTokenService.removeTokens();
180+
$rootScope.$broadcast(CONSTANTS.EVENT_USER_LOGGED_OUT);
181+
resolve();
182+
// $http(logoutOptions).then(function(res) {
183+
// $log.log('logout successful');
184+
// resolve();
185+
// }).catch(function(resp) {
186+
// $log.error('logout error');
187+
// reject();
188+
// });
188189
});
189190
}
190191

0 commit comments

Comments
 (0)