Advertisement
FlyFar

server/webui/templates/create_password.html

Jan 13th, 2024
1,101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.81 KB | Cybersecurity | 0 0
  1. {% with title="Ares" %}
  2. {% include "header.html" %}
  3. {% endwith %}
  4.  
  5.     <div class="container">
  6.         <section id="main_content">
  7.  
  8.         <h2>Please define a password for the Web Interface.</h2>
  9.         <form method="POST" id="passform">
  10.           New Password<br><input type="password" name="password" id="password1"><br><br>
  11.           Confirm<br><input type="password" id="password2"><br><br>
  12.               <input type="submit" value="Define">
  13.         </form>
  14.  
  15.         </section>
  16.     </div>
  17.   <script>
  18.   document.getElementById("passform").onsubmit = function() {
  19.     if (document.getElementById("password1").value == document.getElementById("password2").value) {
  20.       return true;
  21.     }
  22.     else {
  23.       alert("Passwords do not match");
  24.       return false;
  25.     }
  26.   }
  27.   </script>
  28.  
  29. {% include "footer.html" %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement