Spaces:
Sleeping
Sleeping
Update templates/gui2.html
Browse files- templates/gui2.html +1 -1
templates/gui2.html
CHANGED
|
@@ -44,7 +44,7 @@
|
|
| 44 |
password: enteredPassword // Send entered password as form data
|
| 45 |
},
|
| 46 |
success: function(response) {
|
| 47 |
-
if (response.
|
| 48 |
console.log('Correct Password');
|
| 49 |
document.getElementById('mpopupBoxpassword').style.display = "none"; // Hide modal on success
|
| 50 |
window.location.href = "/mainGUI"; // Redirect to the main GUI page
|
|
|
|
| 44 |
password: enteredPassword // Send entered password as form data
|
| 45 |
},
|
| 46 |
success: function(response) {
|
| 47 |
+
if (response.authenticated) {
|
| 48 |
console.log('Correct Password');
|
| 49 |
document.getElementById('mpopupBoxpassword').style.display = "none"; // Hide modal on success
|
| 50 |
window.location.href = "/mainGUI"; // Redirect to the main GUI page
|