From de36391d8b99d0d8fe08a2681e008d4894857135 Mon Sep 17 00:00:00 2001 From: Findeton Date: Sat, 29 Jun 2024 12:44:18 -0500 Subject: [PATCH] wip --- avRegistration/auth-method-service.js | 2 +- dist/appCommon-v10.4.2.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/avRegistration/auth-method-service.js b/avRegistration/auth-method-service.js index cedff11f..55d65735 100644 --- a/avRegistration/auth-method-service.js +++ b/avRegistration/auth-method-service.js @@ -128,7 +128,7 @@ angular.module('avRegistration') return 1000 * (decodedToken.expiry_timestamp + decodedToken.create_timestamp)/2; }); var minHalfLife = Math.min.apply(null, halfLifes); - return minHalfLife > now; + return minHalfLife < now; } authmethod.setAuth = function(auth, isAdmin, autheventid) { diff --git a/dist/appCommon-v10.4.2.js b/dist/appCommon-v10.4.2.js index 76b17a4b..7dfbec9a 100644 --- a/dist/appCommon-v10.4.2.js +++ b/dist/appCommon-v10.4.2.js @@ -19,7 +19,7 @@ angular.module("avRegistration").config(function() {}), angular.module("avRegist decodedToken = authmethod.decodeToken(decodedToken); return 1e3 * (decodedToken.expiry_timestamp + decodedToken.create_timestamp) / 2; }); - return now < Math.min.apply(null, halfLifes); + return Math.min.apply(null, halfLifes) < now; } return authmethod.captcha_code = null, authmethod.captcha_image_url = "", authmethod.captcha_status = "", authmethod.admin = !1, authmethod.decodeToken = function(createTimestamp) {