Unverified Commit 2aabf487 authored by Aral Balkan's avatar Aral Balkan
Browse files

Wire up the form to call the password generation function

parent 71ea9b9d
Pipeline #746 failed with stages
......@@ -25,18 +25,33 @@
<h1>Hypha Aspect Setup Spike 1</h1>
<form id='passwordForm'>
<label>Choose a password:</label>
<input id='password'>
<button type='submit'>Submit</button>
<button id='submit' type='submit'>Submit</button>
// Generate keys from password
function generateKeysFromPassword(password) {
console.log(`Generate keys from password: ${password}`)
// Main
document.addEventListener('DOMContentLoaded', () => {
document.getElementById('passwordForm').addEventListener('submit', (event) => {
const form = event.target
const password = form.elements.password.value
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment