Skip to content
Snippets Groups Projects
Commit a5b15cfa authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Lower-case password in JS as well

parent bd8f2626
No related branches found
No related tags found
No related merge requests found
......@@ -168,6 +168,7 @@ static JSBool js_connect(JSContext* cx, uintN argc, jsval *arglist)
&& user_is_sysop(&user)) {
char hexpass[LEN_PASS * 2 + 1];
strlwr(user.pass);
for (size_t i = 0; user.pass[i]; i++) {
const char hd[] = "0123456789ABCDEF";
hexpass[i*2] = hd[(((uint8_t *)user.pass)[i] & 0xf0) >> 4];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment