Server
This commit is contained in:
BIN
project.db-shm
BIN
project.db-shm
Binary file not shown.
BIN
project.db-wal
BIN
project.db-wal
Binary file not shown.
@@ -7,7 +7,7 @@
|
||||
<body>
|
||||
<div class="center">
|
||||
<form id="infoForm">
|
||||
<h2>Personal Information</h2>
|
||||
<h2>"Password Manager"</h2>
|
||||
<hr>
|
||||
<div class="inputGroup">
|
||||
<p>Password Name</p>
|
||||
@@ -22,7 +22,7 @@
|
||||
<input type="checkbox" id="set" name="Set?">
|
||||
</div>
|
||||
<button type="submit">Submit</button>
|
||||
<a href="/login">Log Out</a>
|
||||
<a href="/login" id="logout">Log Out</a>
|
||||
</form>
|
||||
|
||||
<div class="error">
|
||||
|
||||
@@ -9,6 +9,10 @@ const errorMessage = document.querySelector(".error p");
|
||||
const success = document.querySelector(".success");
|
||||
const successMessage = document.querySelector(".success p");
|
||||
|
||||
const logoutLink = document.querySelector("#logout");
|
||||
|
||||
//logoutLink.onclick = logout;
|
||||
|
||||
openKeyDB();
|
||||
const encryptionKey = await getEncryptionKey()
|
||||
|
||||
@@ -184,3 +188,9 @@ function base64ToBuffer(base64) {
|
||||
}
|
||||
return bytes;
|
||||
}
|
||||
|
||||
function logout() {
|
||||
localStorage.removeItem("token");
|
||||
window.location.href = "/login"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user