mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 11:26:15 +01:00
removed username/password from setup
This commit is contained in:
@@ -45,9 +45,7 @@ async function initDbConnection() {
|
||||
dbReady.resolve();
|
||||
}
|
||||
|
||||
async function createInitialDatabase(username, password, theme) {
|
||||
log.info("Creating database schema ...");
|
||||
|
||||
async function createInitialDatabase() {
|
||||
if (isDbInitialized()) {
|
||||
throw new Error("DB is already initialized");
|
||||
}
|
||||
@@ -57,9 +55,9 @@ async function createInitialDatabase(username, password, theme) {
|
||||
|
||||
let rootNote;
|
||||
|
||||
log.info("Creating root note ...");
|
||||
|
||||
sql.transactional(() => {
|
||||
log.info("Creating database schema ...");
|
||||
|
||||
sql.executeScript(schema);
|
||||
|
||||
require("../becca/becca_loader").load();
|
||||
@@ -67,6 +65,8 @@ async function createInitialDatabase(username, password, theme) {
|
||||
const Note = require("../becca/entities/note");
|
||||
const Branch = require("../becca/entities/branch");
|
||||
|
||||
log.info("Creating root note ...");
|
||||
|
||||
rootNote = new Note({
|
||||
noteId: 'root',
|
||||
title: 'root',
|
||||
@@ -87,8 +87,7 @@ async function createInitialDatabase(username, password, theme) {
|
||||
const optionsInitService = require('./options_init');
|
||||
|
||||
optionsInitService.initDocumentOptions();
|
||||
optionsInitService.initSyncedOptions(username, password);
|
||||
optionsInitService.initNotSyncedOptions(true, { theme });
|
||||
optionsInitService.initNotSyncedOptions(true, {});
|
||||
optionsInitService.initStartupOptions();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user