From 67993f3dd70420898b37e9ec9b473db059838911 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Mon, 3 May 2021 17:15:51 +0200 Subject: [PATCH] Make sure a key is present during sig verification --- static/scripts.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/static/scripts.js b/static/scripts.js index e9fd9be..6d4fb99 100644 --- a/static/scripts.js +++ b/static/scripts.js @@ -70,6 +70,9 @@ elFormVerify.onsubmit = async function (evt) { evt.preventDefault(); try { + // Fetch a key if needed + await fetchProfileKey(); + // Try two different methods of signature reading let signature = null, verified = null, readError = null; try {