interval from Web front 600ms + OSCredentialsVerify on the back with no logs

dev-linux
Ivan Maslov 4 years ago
parent 6161d43715
commit 1c415a34cb

@ -23,6 +23,7 @@ import os #for path operations
from http import cookies from http import cookies
global gSettingsDict global gSettingsDict
from . import ServerSettings from . import ServerSettings
from . import __Orchestrator__
import copy import copy
@ -80,19 +81,11 @@ def AuthenticateVerify(inRequest):
if "\\" in lUser: if "\\" in lUser:
lDomain = lUser.split("\\")[0] lDomain = lUser.split("\\")[0]
lUser = lUser.split("\\")[1] lUser = lUser.split("\\")[1]
#Try to logon - use processor lLogonBool = __Orchestrator__.OSCredentialsVerify(inUserStr=lUser, inPasswordStr=lPassword, inDomainStr=lDomain)
lLogonResult = ProcessorOld.Activity(
{
"Type": "WindowsLogon",
"Domain": lDomain,
"User": lUser,
"Password": lPassword
}
)
#Check result #Check result
if lLogonResult["Result"]: if lLogonBool:
lResult["Domain"] = lLogonResult["Domain"] lResult["Domain"] = lDomain
lResult["User"] = lLogonResult["User"] lResult["User"] = lUser
#Create token #Create token
lAuthToken=str(uuid.uuid1()) lAuthToken=str(uuid.uuid1())
gSettingsDict["ServerDict"]["AccessUsers"]["AuthTokensDict"][lAuthToken] = {} gSettingsDict["ServerDict"]["AccessUsers"]["AuthTokensDict"][lAuthToken] = {}

@ -471,7 +471,8 @@ $(document).ready(function() {
mGlobal.pyOpenRPA.ServerDataHashStr = lResponseJSON["HashStr"] mGlobal.pyOpenRPA.ServerDataHashStr = lResponseJSON["HashStr"]
mGlobal.pyOpenRPA.ServerDataRefreshDef_TechnicalRender() mGlobal.pyOpenRPA.ServerDataRefreshDef_TechnicalRender()
mGlobal.UserRoleUpdate(); mGlobal.UserRoleUpdate();
mGlobal.pyOpenRPA.ServerDataRefreshDef() // Go to the next call setTimeout(mGlobal.pyOpenRPA.ServerDataRefreshDef,600) // If LOGS are update every ms - set some limit in ms on the client side
//mGlobal.pyOpenRPA.ServerDataRefreshDef() // Go to the next call
} }
catch(error) { catch(error) {
console.log(error) console.log(error)
@ -526,7 +527,8 @@ $(document).ready(function() {
} }
catch(error) { catch(error) {
} }
mGlobal.pyOpenRPA.ServerLogListRefreshDef() // recursive setTimeout(mGlobal.pyOpenRPA.ServerLogListRefreshDef,600) // If LOGS are update every ms - set some limit in ms on the client side
//mGlobal.pyOpenRPA.ServerLogListRefreshDef() // recursive
}, },
dataType: "text", dataType: "text",
error: function(jqXHR, textStatus, errorThrown ) { error: function(jqXHR, textStatus, errorThrown ) {

Loading…
Cancel
Save