Fixed creating accounts on wrong login attempt

This commit is contained in:
Thulinma 2016-11-08 15:13:55 +01:00
parent 0eef699b45
commit 0e649b7c72

View file

@ -125,7 +125,7 @@ bool Controller::authorize(JSON::Value & Request, JSON::Value & Response, Socket
return true;
}
}
if (Request["authorize"]["password"].asString() != "" && Secure::md5(Storage["account"][UserID]["password"].asString()) != Request["authorize"]["password"].asString()){
if (Request["authorize"]["password"].asString() != ""){
Log("AUTH", "Failed login attempt " + UserID + " from " + conn.getHost());
}
}