Skip to content

Commit

Permalink
Disable check account status
Browse files Browse the repository at this point in the history
  • Loading branch information
mprunell committed Oct 28, 2021
1 parent 5da9d6a commit 161d8c6
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions smallslive/templates/inactive_dialog.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,29 +73,6 @@
});

var $inactiveModal = $('#inactive-dialog');
var timeOutTime = 1000;

function checkAccountStatus() {
var url = $inactiveModal.data('check-account-url');
$.ajax({
url: url,
success: function (response) {
if (response.success && response.data.isVerified) {
window.location.reload();
} else {
setTimeout(checkAccountStatus, timeOutTime);
timeOutTime = timeOutTime * 2;
if (timeOutTime > 1800000) {
timeOutTime = 1800000;
}
}
}
});
}

// We need now to poll for a change in the email confirmation status so we
// Can reload the page to get the player functionality.
checkAccountStatus();

{% if user.is_authenticated and show_email_confirmation_dialog %}
$inactiveModal.modal('show');
Expand Down

0 comments on commit 161d8c6

Please sign in to comment.