result->status == "active") { dashboard\primary\success("Custom domain setup successfully!"); misc\mysql\query("UPDATE `apps` SET `apiCustomDomainId` = ? WHERE `secret` = ?", [$custom_domain_id, $_SESSION['app']]); } else { if($statusCode > 399) { dashboard\primary\error($json->errors[0]->message); } else { if($json->verification_errors) { dashboard\primary\error("You need to set CNAME to api-worker.keyauth.win then try again!"); } else { dashboard\primary\error("Failed to setup custom domain! Please try again"); } } ?>
Control your application here. Learn More. Tip: You can press Ctrl + S to save settings!