diff options
Diffstat (limited to 'afm-client/app/Frontend/widgets/Notifications')
-rw-r--r-- | afm-client/app/Frontend/widgets/Notifications/TokenRefreshSvc.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/afm-client/app/Frontend/widgets/Notifications/TokenRefreshSvc.js b/afm-client/app/Frontend/widgets/Notifications/TokenRefreshSvc.js index a7ee13f..47c4410 100644 --- a/afm-client/app/Frontend/widgets/Notifications/TokenRefreshSvc.js +++ b/afm-client/app/Frontend/widgets/Notifications/TokenRefreshSvc.js @@ -60,11 +60,11 @@ angular.module('TokenRefresh', ['AppConfig', 'ModalNotification']) }; scope.onsuccess = function(data, errcode, headers, config) { + if (data.request.token) AppConfig.session.token = data.request.token; + if (data.request.uuid) AppConfig.session.uuid = data.request.uuid; + if (data.request.timeout) AppConfig.session.timeout = data.request.timeout; + if (scope.logged !== true) { - if (data.request.token) AppConfig.session.token = data.request.token; - if (data.request.uuid) AppConfig.session.uuid = data.request.uuid; - if (data.request.timeout) AppConfig.session.timeout = data.request.timeout; - Notification.success ({message: "AppFramework Binder Back to Live", delay: 3000}); scope.online(); if (scope.callback) scope.callback(); |