commit 6e28d73c13982081834643757d2a29c59187ae6d
parent f469efe6ba155494f88a0fac6ca66aa3e8f540d9
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date: Fri, 11 Oct 2024 14:38:33 -0700
Use number input type for email verification code
In the future I might just send a random word or series of words
instead, but for now it is fully numeric and this should be especially
useful on touch devices.
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/files/settings/verify-email/main.js b/files/settings/verify-email/main.js
@@ -43,6 +43,10 @@ function codeForm() {
)
input.id = "code"
input.setAttribute("autofocus", true)
+ input.setAttribute("name", "otp")
+ input.setAttribute("type", "number")
+
+ input.after(document.createTextNode(" "))
let submit = form.appendChild(
document.createElement("input")