login.tx 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. : include "components/header.tx";
  2. : include "jsalert.tx";
  3. <div id="login">
  4. <div>
  5. <img id="logo" src="/img/icon/favicon.svg" style="float:left" /><span style="font-family:courier;font-size:2rem;">CMS Login</span>
  6. </div>
  7. <div id="spacer" style="clear: both;"><br /></div>
  8. <form method="POST" action="/auth">
  9. <input type="hidden" name="app" value="login" />
  10. <input type="hidden" name="to" value="<: $to :>" />
  11. Username<br />
  12. <div class="input-group">
  13. <label for="username">😎</span></label>
  14. <input required name="username" id="username" placeholder="AzureDiamond" value="" type="text" autofocus></input>
  15. </div>
  16. <br />
  17. Password<br />
  18. <div class="input-group">
  19. <label for="password">🔑</label>
  20. <input required name="password" id="password" placeholder="hunter2" value="" type="password"></input>
  21. </div>
  22. <br />
  23. : if ($has_users) {
  24. TOTP 2FA code (ignore unless enabled)<br />
  25. <div class="input-group">
  26. <label for="token">🔒</label>
  27. <input name="token" id="token" placeholder="7779311" value="" type="password"></input>
  28. </div>
  29. <br />
  30. : } else {
  31. Contact Email:<br />
  32. <div class="input-group">
  33. <label for="contact_email">📧</label>
  34. <input required name="contact_email" id="contact_email" placeholder="bl00d_n1nja@wh.gov" value="" type="text"></input>
  35. </div>
  36. <br />
  37. : }
  38. <input type="submit" id="maximumGo" value="<: $btnmsg :>"></input>
  39. </form>
  40. : if ($has_users) {
  41. <div id="resetpass">
  42. <a href="/password_reset">Reset Password</a>
  43. </div>
  44. : }
  45. </div>
  46. : include "components/footer.tx";