login.tx 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. : include "components/header.tx";
  2. <div id="login">
  3. : include "jsalert.tx";
  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. : }
  31. <input type="submit" id="maximumGo" value="<: $btnmsg :>"></input>
  32. </form>
  33. <div id="resetpass">
  34. <a href="/request_password_reset">Reset Password</a>
  35. </div>
  36. </div>
  37. : include "components/footer.tx";