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) => {
indexedDB.callOnStore('Indienet', 'keyStore', (store) => {
window.location = '/sign-in.html'
......@@ -36,6 +36,7 @@ form.addEventListener('submit', (e) => {
window.location = "signed-in.html"
}).catch((err) => {
<!DOCTYPE html>
<html lang="en">
<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>
<h1>Welcome to</h1>
<p>This is my personal space</p>
<form action="logout" id="logout">
<input type="submit" value="Log out">
<script src="js/logout.js"></script>
\ 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