A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
feat: add verify account dialog
thecodrr31a9aa0c6401
diff --git a/apps/web/src/common/index.js b/apps/web/src/common/index.jsindex cff18ce93..d47c4f109 100644--- a/apps/web/src/common/index.js+++ b/apps/web/src/common/index.js@@ -6,6 +6,7 @@ import { Text } from "rebass";import {showFeatureDialog,showLoadingDialog,+ showPasswordDialog,} from "../common/dialog-controller";import Config from "../utils/config";import { store as userstore } from "../stores/user-store";@@ -134,3 +135,9 @@ export function getTotalNotes(notebook) {return sum + topic.notes.length;}, 0);}++export function verifyAccount() {+ return showPasswordDialog("verify_account", ({ password }) => {+ return db.user.verifyPassword(password);+ });+}