diff --git a/src/recovery.html b/src/recovery.html
index 826557c..ac4f399 100644
--- a/src/recovery.html
+++ b/src/recovery.html
@@ -26,7 +26,20 @@
function formHandler(listener){
listener.preventDefault();
- alert('Not implemented yet');
+ const option = document.getElementById('options').value.toString();
+ if(option === ''){
+ alert("Need to implement this");
+ } else {
+ const formData = new FormData(formEl);
+ const value = formData.get('value');
+ let object;
+ if (option === 'email'){
+ object = { email: value };
+ } else {
+ object = { user: value };
+ }
+ alert(JSON.stringify(object));
+ }
}
function selectField(){