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

+6
View File
@@ -354,6 +354,12 @@ div.box {
padding: 0;
width: 100%;
}
button.marginLeft, a.button.marginLeft {
margin-left: 0;
}
button.marginRight, a.button.marginRight {
margin-right: 0;
}
div.modal {
left: 20px;
right: 20px;
+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();
});
};
}
})();