forked from Business/AccountHub
Obscure mobile auth keys in log
This commit is contained in:
parent
b9a883d3e8
commit
0827d8153a
@ -38,6 +38,13 @@ if ($user_key_valid !== TRUE) {
|
||||
die(json_encode(["status" => "ERROR", "msg" => "Invalid username and/or access key."]));
|
||||
}
|
||||
|
||||
// Obscure key
|
||||
if (strlen($key) > 7) {
|
||||
for ($i = 3; $i < strlen($key) - 3; $i++) {
|
||||
$key[$i] = "*";
|
||||
}
|
||||
}
|
||||
|
||||
// Process the action
|
||||
switch ($VARS['action']) {
|
||||
case "check_key":
|
||||
|
Loading…
x
Reference in New Issue
Block a user