From 539e6bc5625f539f098174dd177c8b34c09304d0 Mon Sep 17 00:00:00 2001 From: Thomas M Steenholdt Date: Sun, 12 Aug 2018 07:41:24 -0200 Subject: [PATCH] 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) --- app/templates/user_profile.html | 1 - 1 file changed, 1 deletion(-) diff --git a/app/templates/user_profile.html b/app/templates/user_profile.html index dbda925..37ec41d 100644 --- a/app/templates/user_profile.html +++ b/app/templates/user_profile.html @@ -167,7 +167,6 @@ } }; applyChanges(postdata, $SCRIPT_ROOT + '/user/profile', false, true); - location.reload(); }); {% endblock %}