config = json_decode(file_get_contents(storage_path(getenv("DYNDNS_CONFIG_FILE"))), true); } public function validateUser($username, $password, $domain) : bool { foreach ($this->config["accounts"] as $account) { if($account["username"] == $username) { if($account["password"] == $password) { if($account["domain"] == $domain) { return true; } } } } return false; } }