Marthee commited on
Commit
26b6333
·
verified ·
1 Parent(s): 10ac252

Update templates/gui2.html

Browse files
Files changed (1) hide show
  1. 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.startsWith('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
 
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