Skip to content
Snippets Groups Projects
Commit 74d0b279 authored by mcmlxxix's avatar mcmlxxix
Browse files

toUppercase() passwords retrieved from User object when comparing to client...

toUppercase() passwords retrieved from User object when comparing to client hash in ident() methods... because I dunno
parent a2d4560f
No related branches found
No related tags found
No related merge requests found
......@@ -298,9 +298,9 @@ chat = new (function() {
return false;
}
var usr = new User(usernum);
var pass = md5_calc(usr.security.password,true);
var pass = md5_calc(usr.security.password.toUpperCase(),true);
if(md5_calc(usr.security.password,true) != pw) {
if(md5_calc(usr.security.password.toUpperCase(),true) != pw) {
error(client,errors.INVALID_PASSWORD);
return false;
}
......@@ -408,7 +408,7 @@ admin = new (function() {
return false;
}
var usr = new User(usernum);
if(md5_calc(usr.security.password,true) != pw) {
if(md5_calc(usr.security.password.toUpperCase(),true) != pw) {
error(client,errors.INVALID_PASSWORD);
return false;
}
......
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