mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-08 14:40:27 +00:00
Fix double refresh when activating 2FA
When toggling Two Factor Authentication, it often takes a few tries to get it to work. The toggle function ends up reloading the page in two different places, effectively creating a race condition. This fixes that problem (cherry picked from commit 6b9fc897bc02ff857a968e76ed49f1b0f2108bb5)
This commit is contained in:
parent
85e745731b
commit
539e6bc562
@ -167,7 +167,6 @@
|
||||
}
|
||||
};
|
||||
applyChanges(postdata, $SCRIPT_ROOT + '/user/profile', false, true);
|
||||
location.reload();
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
Loading…
Reference in New Issue
Block a user