Ind.ie is now Small Technology Foundation.
Commit d97f1975 authored by Frauke's avatar Frauke

Created signed-in page

Added logout button and functionality
parent ecb069ef
const indexedDB = require('./indexedDB')
const form = document.getElementById('logout')
form.addEventListener('submit', (e) => {
e.preventDefault()
indexedDB.callOnStore('Indienet', 'keyStore', (store) => {
store.clear()
window.location = '/sign-in.html'
})
})
......@@ -36,6 +36,7 @@ form.addEventListener('submit', (e) => {
jwt: jwt.data
})
})
window.location = "signed-in.html"
}).catch((err) => {
console.log(err)
})
......
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Succesfully signed in</title>
</head>
<body>
<h1>Welcome to my.gent</h1>
<p>This is my personal space</p>
<form action="logout" id="logout">
<input type="submit" value="Log out">
</form>
<script src="js/logout.js"></script>
</body>
</html>
\ 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