Prevent double-clicks on SSO login providers (#5842)

This commit is contained in:
Kian Cross
2026-01-26 07:31:30 +00:00
committed by GitHub
parent a53795ea88
commit a0dae48cec
2 changed files with 6 additions and 1 deletions

View File

@@ -60,7 +60,7 @@
{% endif %}
{% if providers %}
<ul class="list-inline text-center blank-after">
<ul id="customer-account-login-providers" class="list-inline text-center blank-after">
{% for provider in providers %}
<li>
<a href="{% eventurl request.organizer "presale:organizer.customer.login" provider=provider.pk %}?{{ request.META.QUERY_STRING }}"

View File

@@ -731,6 +731,11 @@ $(function () {
$(countInput).trigger("change");
});
});
$("#customer-account-login-providers a").click(function () {
// Prevent double-submit, see also https://github.com/pretix/pretix/issues/5836
$(this).addClass("disabled");
});
});
function copy_answers(elements, answers) {