Skip to content

Commit

Permalink
Fixed e2e setup not working when entering backup key
Browse files Browse the repository at this point in the history
  • Loading branch information
Forceu committed Dec 14, 2024
1 parent 53d27c2 commit 103fc49
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions internal/webserver/web/templates/html_end2end.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,8 @@

}

function clearKeys() {
localStorage.removeItem("e2ekey");
}


function newKey() {
clearKeys();
localStorage.removeItem("e2ekey");
let key;
try {
key = GokapiE2EGetNewCipher(true);
Expand Down Expand Up @@ -107,7 +102,7 @@

<script>
function saveKey() {
clearKeys();
localStorage.removeItem("e2ekey");
let key = document.getElementById("password").value;
localStorage.setItem("e2ekey", key);

Expand Down

1 comment on commit 103fc49

@Forceu
Copy link
Owner Author

@Forceu Forceu commented on 103fc49 Dec 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug was introduced in ae1d333

Please sign in to comment.