casGoogleAuthenticatorRegistrationView.html 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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.googleauth.pagetitle}">Google Authentication Registration Review View</title>
  7. <link href="../../static/css/cas.css" rel="stylesheet" th:remove="tag" />
  8. </head>
  9. <body id="cas">
  10. <main role="main" class="container mt-3 mb-3">
  11. <div layout:fragment="content" id="login">
  12. <h3 th:text="#{screen.authentication.gauth.register}">Your account is not registered. Use the below settings to
  13. register your device with CAS.</h3>
  14. <form method="post" id="fm1" class="fm-v clearfix" th:action="@{/login}">
  15. <div class="form-group">
  16. <img th:src="@{/otp/qrgen(key=${keyUri})}"/>
  17. <br/>
  18. <div>
  19. <p th:utext="#{screen.authentication.gauth.key(${key.getSecretKey()})}">Secret key to register is
  20. ...</p>
  21. </div>
  22. <p>Scratch Codes:</p>
  23. <ul>
  24. <li th:each="code : ${key.getScratchCodes()}" th:text="${code}">code</li>
  25. </ul>
  26. <input type="hidden" name="_eventId" value="submit"/>
  27. <input class="btn btn-submit" name="submit" accesskey="l"
  28. th:value="#{screen.welcome.button.register}" tabindex="4" type="submit" value="Register"/>
  29. <input class="btn btn-info" name="print" accesskey="p"
  30. th:value="#{screen.welcome.button.print}"
  31. tabindex="5" type="button"
  32. value="Print"
  33. onclick="window.print();"/>
  34. </div>
  35. <input type="hidden" name="execution" th:value="${flowExecutionKey}"/>
  36. </form>
  37. </div>
  38. </main>
  39. </body>
  40. </html>