Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix: 🐛 fix open id check error
Jinf19ec9b3c4d5
diff --git a/src/services/open_id.ts b/src/services/open_id.tsindex 75006da12c..992eeb9d07 100644--- a/src/services/open_id.ts+++ b/src/services/open_id.ts@@ -22,7 +22,7 @@ function checkOpenIDConfig() {}function isOpenIDEnabled() {- return !(checkOpenIDConfig().length > 0) && options.getOption('mfaMethod') === 'oauth';+ return !(checkOpenIDConfig().length > 0) && options.getOptionOrNull('mfaMethod') === 'oauth';}function isUserSaved() {