mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 22:05:44 +01:00
Add option to check for updates when setting up server
This commit is contained in:
@@ -5,6 +5,7 @@ const optionService = require('../services/options');
|
||||
const myScryptService = require('../services/my_scrypt');
|
||||
const log = require('../services/log');
|
||||
const passwordService = require("../services/password");
|
||||
const options = require('../services/options');
|
||||
|
||||
function loginPage(req, res) {
|
||||
res.render('login', { failedAuth: false });
|
||||
@@ -36,6 +37,7 @@ function setPassword(req, res) {
|
||||
return;
|
||||
}
|
||||
|
||||
options.setOption("checkForUpdates", req.body['check-for-updates'] == true);
|
||||
passwordService.setPassword(password1);
|
||||
|
||||
res.redirect('login');
|
||||
|
||||
Reference in New Issue
Block a user