From 114ad8ea363111a150b0541dd7c1e00ad2a372ac Mon Sep 17 00:00:00 2001 From: Eoghan Conlon Date: Sun, 27 Aug 2023 21:27:59 +0100 Subject: [PATCH] Form data extracted Signed-off-by: Eoghan Conlon --- src/recovery/ssh-request.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/recovery/ssh-request.html b/src/recovery/ssh-request.html index 6387d1d..bf93aae 100644 --- a/src/recovery/ssh-request.html +++ b/src/recovery/ssh-request.html @@ -26,7 +26,9 @@ function formHandler(listener){ listener.preventDefault(); - alert("Default skipped"); + const formData = new FormData(formEl); + const object = { user: formData.get('user'), email: formData.get('mail')}; + alert(JSON.stringify(object)); }