From f1b50186fbc3ad6c8f86c2876423456e4e4c1f50 Mon Sep 17 00:00:00 2001 From: p3k Date: Wed, 28 Apr 2004 11:09:39 +0000 Subject: [PATCH] fixed bug that caused exception with wront access credentials --- Global/functions.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Global/functions.js b/Global/functions.js index 4d3740bb..6f506f3d 100644 --- a/Global/functions.js +++ b/Global/functions.js @@ -132,10 +132,9 @@ function checkAuth(appObj) { if (appObj!=null && appObj.isActive()) { // check against application - var appUsername = appObj.getProperty("adminusername"); - var appPassword = appObj.getProperty("adminpassword"); - if ( md5username==appUsername && md5password==appPassword ) - return true; + adminAccess = appObj.getProperty("adminAccess"); + if (md5key==adminAccess) + return true; } return forceAuth(); }