Promotic
Login logon

onRequestError - event of the PmaWeb object

Description:
The event is triggered by the request that has ivalid user authentication credentials.
Failed to identify the user (incorrect name) or verify the user (incorrect password).
Parameters:
pMe(Object) Reference to the PmaWeb object where the event rises.
pEvent(Object) Reference to an object describing detailed information about the specific event.
pEvent.ErrorType - (Long) [for reading] Error type.
1 - Authentication error. The name and/or password is incorrect. This error will manifest as HTTP error 403 (forbidden).
Caution! HTTP error 403 also occurs in other situations where the user is correctly logged in, but does not have permission for the given page.
pEvent.HostName - (String) [for reading] Name of the user in the web browser (client).
pEvent.HostPwd - (String) [for reading] Password of the user in the web browser (client).
pEvent.HostAddr - (String) [for reading] Network address of the client computer - of the web browser.
pEvent.Method - (String) [for reading] Name of the HTTP method by which the request was sent:
"POST" - Sending of the request from the HTML form
"GET" - Sending of the request as a part of the required new page
pEvent.PageAddr - (String) [for reading] Address of the requested page. This text is always converted to small letters.
Example:
JavaScriptVBScriptSelect and copy to clipboard

if (1 == pEvent.ErrorType)
{
Pm.Debug("Name=" + pEvent.HostName);
Pm.Debug("Password=" + pEvent.HostPwd);
}

History:
Pm9.00.33: Created
PROMOTIC 9.0.34 SCADA system documentation MICROSYS, spol. s r.o.

Send page remark Contact responsible person
© MICROSYS, spol. s r.o.Update cookies preferences