www.spaceplanner.app

Web client to the spaceplanner API
git clone git://jacobedwards.org/www.spaceplanner.app
Log | Files | Refs

commit 83aa37034ba6557a00bcd949d35e8ea4c88f6fa2
parent cb39d73a266f723314dfa6c28bf0e4db39261e2c
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date:   Fri, 11 Oct 2024 12:03:44 -0700

Add retry button to verification page

If email fails to send the first time, show a retry button.

Diffstat:
Mfiles/settings/verify-email/main.js | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/files/settings/verify-email/main.js b/files/settings/verify-email/main.js @@ -11,6 +11,14 @@ function main() { }) .catch(function(err) { etc.error(err + ": Unable to send code") + + let b = document.body.appendChild(document.createElement("input")) + b.type = "button" + b.value = "Retry" + b.addEventListener("click", function() { + b.remove() + main() + }) }) }