|
|
@ -18,6 +18,7 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo
|
|
|
|
|
|
|
|
|
|
|
|
var stompClient = null;
|
|
|
|
var stompClient = null;
|
|
|
|
var newPartnerGuide_counts = 0;
|
|
|
|
var newPartnerGuide_counts = 0;
|
|
|
|
|
|
|
|
var pwdcount = 0;
|
|
|
|
$scope.loadCurrentUser = function () {
|
|
|
|
$scope.loadCurrentUser = function () {
|
|
|
|
$http.get('/global/userstatus/current_partner').then(function (resp) {
|
|
|
|
$http.get('/global/userstatus/current_partner').then(function (resp) {
|
|
|
|
$rootScope.currentUser = resp.data;
|
|
|
|
$rootScope.currentUser = resp.data;
|
|
|
@ -33,13 +34,15 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}*/
|
|
|
|
}*/
|
|
|
|
if ($rootScope.currentUser.is_password_expired) {
|
|
|
|
if ($rootScope.currentUser.is_password_expired && pwdcount == 0) {
|
|
|
|
|
|
|
|
|
|
|
|
commonDialog.confirm({
|
|
|
|
commonDialog.confirm({
|
|
|
|
title: 'Change Password!',
|
|
|
|
title: 'Change Password!',
|
|
|
|
content: 'Your password has been expired,click OK to set a new password'
|
|
|
|
content: 'Your password has been expired,click OK to set a new password'
|
|
|
|
}).then(function () {
|
|
|
|
}).then(function () {
|
|
|
|
$scope.changePwd();
|
|
|
|
$scope.changePwd();
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
pwdcount++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
connectWebSocket();
|
|
|
|
connectWebSocket();
|
|
|
|
if ($scope.currentUser.role == 1 || $scope.currentUser.role == 2) {
|
|
|
|
if ($scope.currentUser.role == 1 || $scope.currentUser.role == 2) {
|
|
|
|