MAPG-69 ability to reset signup filled after login attempt

This commit is contained in:
bence committed 2020-06-21 15:12:45 +02:00
1 parent 285f2dd0ac
commit a8777b897b
5 files changed
+31 -2

No files matched your search

+11
View File
@@ -46,4 +46,15 @@
window.location.replace('/signup/success');
}, formData);
};
var resetSignupButton = document.getElementById('resetSignupButton');
if (resetSignupButton) {
resetSignupButton.onclick = function () {
document.getElementById('loading').style.visibility = 'visible';
MapGuesser.httpRequest('POST', '/signup/reset', function () {
window.location.reload();
});
};
}
})();