forked from CGM_Public/pretix_original
Prevent double-clicks on SSO login providers (#5842)
This commit is contained in:
@@ -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 }}"
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user