@@ -58,6 +60,15 @@ function showErrorModal(message) {
errorModal.show();
}
async function checkRegistration() {
+ const button = document.getElementById("loginButton");
+ const buttonText = document.getElementById("buttonText");
+
+ // Disable the button to prevent multiple clicks
+ button.disabled = true;
+
+ // Change the button text and add a loading spinner
+ buttonText.innerHTML = 'Loading...';
+ button.innerHTML += '
Loading...
';
try {
if (!window.fetch || !navigator.credentials || !navigator.credentials.create) {
diff --git a/app-code/plugins/auth.php b/app-code/plugins/auth.php
index b44f0cf..0f2e739 100644
--- a/app-code/plugins/auth.php
+++ b/app-code/plugins/auth.php
@@ -6,7 +6,7 @@ This file can be installed in any service. If done so a user can authenticate wi
$auth_token = $_GET["auth"];
// Check the auth token against Jakach login API
-$check_url = "https://jakach.duckdns.org:444/api/auth/check_auth_key.php?auth_token=" . $auth_token;
+$check_url = "https://jakach-auth.duckdns.org:444/api/auth/check_auth_key.php?auth_token=" . $auth_token;
// Initialize cURL
$ch = curl_init();