password.ejs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta content="width=device-width, initial-scale=1" name="viewport"/>
  6. <title>The Subline</title>
  7. <link rel="icon" type="img/png" href="/shared/images/logo.png">
  8. <link rel="stylesheet" href="/shared/shared.css">
  9. <link rel="stylesheet" href="/passwordResetPages/passwordReset.css">
  10. <link href="https://fonts.googleapis.com/css?family=Saira&display=swap" rel="stylesheet">
  11. </head>
  12. <body>
  13. <% include ../shared/header %>
  14. <% include ../shared/banner %>
  15. <h1 class="title">Reset Password</h1>
  16. <form class="form" action="/reset" method="post">
  17. <input name="password" type="password" class="formInput" placeholder="password">
  18. <input name="confirmPassword" type="password" class="formInput" placeholder="confirm password">
  19. <input name="code" type="hidden" value="<%=code%>">
  20. <input name="id" type="hidden" value="<%=id%>">
  21. <input class="button" type="submit" value="RESET PASSWORD">
  22. </form>
  23. <script>
  24. document.getElementById("helpLink").style.display = "block";
  25. document.getElementById("privacyPolicyLink").style.display = "block";
  26. document.getElementById("termsLink").style.display = "block";
  27. const error = <%- JSON.stringify(error) %>;
  28. if(error){
  29. banner.createError(error);
  30. }
  31. </script>
  32. </body>
  33. </html>