Mercurial > hg > rlgwebd
comparison rlgwebd.js @ 190:11b7baed2e21
Stop printing credentials in the logfile.
This was nice for debugging, but could lead to security problems.
author | John "Elwin" Edwards |
---|---|
date | Sat, 31 Jan 2015 18:13:24 -0500 |
parents | bbfda4a4eb7f |
children | 9758ca68e7f1 |
comparison
equal
deleted
inserted
replaced
189:09451f300a8a | 190:11b7baed2e21 |
---|---|
613 logins[lkey] = {"name": username, "ts": new Date()}; | 613 logins[lkey] = {"name": username, "ts": new Date()}; |
614 res.writeHead(200, {'Content-Type': 'application/json'}); | 614 res.writeHead(200, {'Content-Type': 'application/json'}); |
615 var reply = {"t": "l", "k": lkey, "u": username}; | 615 var reply = {"t": "l", "k": lkey, "u": username}; |
616 res.write(JSON.stringify(reply)); | 616 res.write(JSON.stringify(reply)); |
617 res.end(); | 617 res.end(); |
618 tslog("%s has logged in (key %s)", username, lkey); | 618 tslog("%s has logged in", username); |
619 return; | 619 return; |
620 } | 620 } |
621 /* Launch the sqlickrypt utility to check the password. */ | 621 /* Launch the sqlickrypt utility to check the password. */ |
622 var pwchecker = child_process.spawn("/bin/sqlickrypt", ["check"]); | 622 var pwchecker = child_process.spawn("/bin/sqlickrypt", ["check"]); |
623 pwchecker.on("exit", checkit); | 623 pwchecker.on("exit", checkit); |