Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Findeton committed Jul 2, 2024
1 parent c3faf18 commit 996499a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
10 changes: 5 additions & 5 deletions avRegistration/auth-method-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -830,13 +830,13 @@ angular.module('avRegistration')
var postfix = "_authevent_" + autheventid;
// ping daemon is not active for normal users

if (!authmethod.admin) {
//var hasGracefulPeriod = window.sessionStorage.getItem('hasGracefulPeriod');
//if (hasGracefulPeriod === "true") {
/*if (!authmethod.admin) {
var hasGracefulPeriod = window.sessionStorage.getItem('hasGracefulPeriod');
if (hasGracefulPeriod === "true") {
deferred.reject("not an admin");
return deferred.promise;
//}
}
}
}*/
// if document is hidden, then do not update the cookie, and redirect
// to admin logout if cookie expired
if (document.visibilityState === 'hidden') {
Expand Down
1 change: 0 additions & 1 deletion dist/appCommon-v10.4.2.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,6 @@ angular.module("avRegistration").config(function() {}), angular.module("avRegist
return $http.post(url, data);
}, authmethod.refreshAuthToken = function(autheventid) {
var deferred = $q.defer(), postfix = "_authevent_" + autheventid;
if (!authmethod.admin) return deferred.reject("not an admin"), deferred.promise;
if ("hidden" === document.visibilityState) return $cookies.get("auth" + postfix) || $state.go("admin.logout"),
deferred.reject("tab not focused"), deferred.promise;
var now = Date.now(), sessionStartedAtMs = now;
Expand Down

0 comments on commit 996499a

Please sign in to comment.