Lazy fix for mobile thing
This commit is contained in:
parent
2cee224450
commit
ed870dd068
@ -33,7 +33,7 @@ $key = strtoupper($VARS['key']);
|
|||||||
$user_key_valid = $database->has('mobile_codes', ['[>]accounts' => ['uid' => 'uid']], ["AND" => ['mobile_codes.code' => $key, 'accounts.username' => $username]]);
|
$user_key_valid = $database->has('mobile_codes', ['[>]accounts' => ['uid' => 'uid']], ["AND" => ['mobile_codes.code' => $key, 'accounts.username' => $username]]);
|
||||||
if ($user_key_valid !== TRUE) {
|
if ($user_key_valid !== TRUE) {
|
||||||
engageRateLimit();
|
engageRateLimit();
|
||||||
http_response_code(401);
|
//http_response_code(401);
|
||||||
insertAuthLog(21, null, "Username: " . $username . ", Key: " . $key);
|
insertAuthLog(21, null, "Username: " . $username . ", Key: " . $key);
|
||||||
die(json_encode(["status" => "ERROR", "msg" => "Invalid username and/or access key."]));
|
die(json_encode(["status" => "ERROR", "msg" => "Invalid username and/or access key."]));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user