casYubiKeyLoginView.html 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <!DOCTYPE html>
  2. <html xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" layout:decorate="~{layout}">
  3. <head>
  4. <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
  5. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
  6. <title th:text="#{cas.mfa.yubikey.pagetitle}">YubiKey Login View</title>
  7. <link href="../../static/css/cas.css" rel="stylesheet" th:remove="tag" />
  8. </head>
  9. <body>
  10. <main role="main" class="container mt-3 mb-3">
  11. <div layout:fragment="content" id="login">
  12. <form method="post" id="yubiKeyForm" th:object="${credential}" th:action="@{/login}">
  13. <div class="alert alert-info" th:text="#{cas.mfa.yubikey.authenticate}">
  14. Use your registered YubiKey device to authenticate.
  15. </div>
  16. <div class="alert alert-danger" th:if="${#fields.hasErrors('*')}">
  17. <span th:each="err : ${#fields.errors('*')}" th:utext="${err}">Error message</span>
  18. </div>
  19. <div class="form-group">
  20. <label for="token" th:utext="#{screen.welcome.label.password}"><span class="accesskey">P</span>assword:</label>
  21. <input type="password" class="form-control required" required id="token" size="25" tabindex="1"
  22. th:field="*{token}"
  23. th:accesskey="#{screen.welcome.label.password.accesskey}" autocomplete="off"/>
  24. </div>
  25. <input class="btn btn-submit" name="_eventId_submit" accesskey="l"
  26. th:value="#{screen.welcome.button.login}" tabindex="2" type="submit" value="Login"/>
  27. <input type="hidden" name="execution" th:value="${flowExecutionKey}"/>
  28. <input type="hidden" name="geolocation"/>
  29. </form>
  30. </div>
  31. </main>
  32. </body>
  33. </html>