Fixed creating accounts on wrong login attempt
This commit is contained in:
parent
0eef699b45
commit
0e649b7c72
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue