fixed bug that caused exception with wront access credentials
This commit is contained in:
parent
af52a36f3d
commit
f1b50186fb
1 changed files with 3 additions and 4 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue