Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#96667 Update hosted forms on Github to Release 5.14 #37

Merged
merged 2 commits into from Dec 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions HostedForms/EnableAuthenticator.html
Expand Up @@ -10,6 +10,7 @@
<script src="runtime/scripts/jquery.qrcode.js"></script>
<script src="runtime/scripts/qrcode.js"></script>
<script src="runtime/scripts/copy-to-clipboard.js"></script>
<script src="runtime/scripts/disable-buttons-on-submit-form.js"></script>
{% endblock %}

{% block "content" %}
Expand Down
4 changes: 4 additions & 0 deletions HostedForms/EnableDeviceAuthentication.html
Expand Up @@ -4,6 +4,10 @@
{{Resources.OtpResources.OtpAuthenticationView_TitleHeader | Escape }}
{% endblock %}

{% block "initscript" %}
<script src="runtime/scripts/disable-buttons-on-submit-form.js"></script>
{% endblock %}

{% block "content" %}
<div class="form-box" style="max-width: 560px">
<div class="form-top">
Expand Down
4 changes: 4 additions & 0 deletions HostedForms/LoginWithAuthenticator.html
Expand Up @@ -4,6 +4,10 @@
{{Resources.OtpResources.OtpAuthenticationView_TitleHeader | Escape }}
{% endblock %}

{% block "initscript" %}
<script src="runtime/scripts/disable-buttons-on-submit-form.js"></script>
{% endblock %}

{% block "content" %}
<div class="form-box">
<div class="form-top">
Expand Down
1 change: 1 addition & 0 deletions HostedForms/OnboardingSucceeded.html
Expand Up @@ -6,6 +6,7 @@

{% block "initscript" %}
<script src="runtime/scripts/copy-to-clipboard.js"></script>
<script src="runtime/scripts/disable-buttons-on-submit-form.js"></script>
{% endblock %}

{% block "content" %}
Expand Down
7 changes: 5 additions & 2 deletions HostedForms/OtpAuthentication.html
Expand Up @@ -109,17 +109,20 @@ <h6>
{% endblock %}

{% block "initscript" %}
<script src="runtime/scripts/disable-buttons-on-submit-form.js"></script>
<script type="text/javascript">
var timeleft = parseInt("{{Model.SecondsUntilUserCanRequestANewOtp }}");
var downloadTimer = setInterval(function () {
document.getElementById("countdown").innerHTML = timeleft;
timeleft -= 1;
if (timeleft < 0) {
clearInterval(downloadTimer);
var currentUrl = window.location.href;
var url = currentUrl.replace('/validate', '/login');
document.getElementById("requestOTPLink").innerHTML = "{{Resources.OtpResources.OtpAuthenticationView_RequestNewOTPCode | Escape }}";
document.getElementById("requestOTPLink").href = "javascript: location.reload()";
document.getElementById("requestOTPLink").href = url;
document.getElementById("requestOTPLink").style = "cursor:pointer";
}
}, 1000);
</script>
{% endblock %}
{% endblock %}
4 changes: 4 additions & 0 deletions HostedForms/RecoveryCode.html
Expand Up @@ -4,6 +4,10 @@
{{Resources.OtpResources.OtpAuthenticationView_TitleHeader | Escape }}
{% endblock %}

{% block "initscript" %}
<script src="runtime/scripts/disable-buttons-on-submit-form.js"></script>
{% endblock %}

{% block "content" %}
<div class="form-box">
<div class="form-top">
Expand Down