Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: do not allow unlocking note with empty pwd

thecodrr93d896507290
diff --git a/apps/web/src/components/unlock/index.js b/apps/web/src/components/unlock/index.js
index 7848c07c9..e452a61fe 100644
--- a/apps/web/src/components/unlock/index.js
+++ b/apps/web/src/components/unlock/index.js
@@ -21,6 +21,7 @@ function Unlock(props) {
setIsUnlocking(true);
const password = passwordRef.current.value;
try {
+ if (!password) return;
const note = await db.vault.open(noteId, password);
openLockedSession(note);
} catch (e) {