From fa7447548ac9e3e27f26d33f0811d2314bd344e2 Mon Sep 17 00:00:00 2001 From: lub Date: Sun, 3 Aug 2025 10:17:41 +0200 Subject: [PATCH] typo and cleanup debug output --- index.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/index.php b/index.php index 6e8f37b..e1f6d6f 100644 --- a/index.php +++ b/index.php @@ -48,11 +48,6 @@ if (isset($_GET['secret']) && $_GET['secret'] === REGISTRATION_PASSWORD) { ]; $content['mac'] = hash_hmac('sha1', $content['nonce']."\0".$content['username']."\0".$content['password']."\0".'notadmin', REGISTRATION_SHARED_SECRET); - # debug - echo ''; - $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, SYNAPSE_URL.'/_synapse/admin/v1/register'); curl_setopt($ch, CURLOPT_POST, true); @@ -63,13 +58,13 @@ if (isset($_GET['secret']) && $_GET['secret'] === REGISTRATION_PASSWORD) { curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); if (curl_error($ch) || curl_getinfo($ch, CURLINFO_HTTP_CODE) !== 200) { - $decoded_response = json_decode($response); ?> Registration for "" unsuccessful. Please try again later. Registration successful. To start using it please install a Matrix client like Element
@@ -85,7 +80,6 @@ Also consider using a password manager.