Configuration Guide Configuring Web Authentication
_errormsg.appendChild(script);
}
//Call the init function when the login page is loaded.
function init() {
……
requestErrorMsg();
}
……
</script>
Form submission
A form is submitted in the format of username=[AAAA]&password=[BBBB]&lang=[CCCC]. The meanings of the fields are
described in the following:
[AAAA]: (optional)Indicates the user name that the user enters in the User name text box.
[BBBB]: (optional)Indicates the password that the user enters in the Password text box.
[CCCC]: (optional) Indicates the language environment. The value 1 indicates Simplified Chinese, and the value 2 indicates
English. Other languages are not defined. The default language environment is Simplified Chinese. When English is used,
the submitted form must contain the language environment information; otherwise, the content of the errormsg tab is in
Chinese.
The form of the login page must contain at least the following three input fields (tabs): username, password, and Login
button. If the login page provides the Chinese and English language options, the form may also contain the Language input
field, which is invisible.
The HTML source code of the login page is as follows:
<html>
<head>
<title>Web authentication login page</title>
</head>
<script language=”javascript”>
//Request errormsg. Errormsg is empty and not displayed when a user passes authentication or the login page is loaded for
the first time.
function requestErrorMsg() {
var _errormsg=document.getElementById(“errormsg”);
var script=document.createElement(“script”);