Skip to content
Snippets Groups Projects
Commit 2e0a3e8b authored by mcmlxxix's avatar mcmlxxix
Browse files

strengthened the stiffness of security. got firm on hardening. erected a new...

strengthened the stiffness of security. got firm on hardening. erected a new parameter for the ident command. wood.
parent a0541f45
Branches
Tags
No related merge requests found
......@@ -36,8 +36,7 @@ load("json-sock.js");
- JSONClient.receive();
- JSONClient.wait();
optional arguments: if these are not supplied,
the client will connect to the default server (bbs.thebrokenbubble.com)
arguments:
- argv[0] = serverAddr;
- argv[1] = serverPort;
......@@ -273,10 +272,9 @@ function JSONClient(serverAddr,serverPort) {
}
/* identify this client as a bbs user */
this.ident=function(username,pw) {
this.ident=function(scope,username,pw) {
pw = md5_calc(pw.toUpperCase(),true);
this.send("ADMIN","CMD",{
oper:"IDENT",
this.send(scope,"IDENT",{
username:username,
pw:pw
});
......@@ -303,16 +301,3 @@ function JSONClient(serverAddr,serverPort) {
this.connect();
log(LOG_INFO,"JSON client initialized (v" + this.VERSION + ")");
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment