index.jelly 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. <!-- /src/main/resources/io/jenkins/plugins/MfaVerifyAction/index.jelly -->
  2. <?jelly escape-by-default='true'?>
  3. <j:jelly xmlns:j="jelly:core" xmlns:l="/lib/layout" xmlns:f="/lib/form">
  4. <l:layout title="MFA Verification">
  5. <l:main-panel>
  6. <h1>${%MfaVerifyAction.title}</h1>
  7. <j:if test="${request.getParameter('error') == 'locked'}">
  8. <div class="error-message">
  9. ${%MfaVerifyAction.error.locked}
  10. </div>
  11. </j:if>
  12. <j:if test="${request.getParameter('error') == '1'}">
  13. <div class="error-message">
  14. ${%MfaUserProperty.totpCode.invalid}
  15. </div>
  16. </j:if>
  17. <form method="post" action="${rootURL}/mfa-verify/verify">
  18. <f:entry title="${%MfaUserProperty.verificationCode.label}">
  19. <f:textbox name="totpCode" />
  20. </f:entry>
  21. <f:entry>
  22. <f:submit value="${%MfaVerifyAction.submit}" />
  23. </f:entry>
  24. </form>
  25. <p class="setting-description">${%MfaVerifyAction.backupCodeHint}</p>
  26. </l:main-panel>
  27. </l:layout>
  28. </j:jelly>