mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
Add option to check for updates when setting up server
This commit is contained in:
parent
e42c527a19
commit
20975fc635
@ -5,6 +5,7 @@ const optionService = require('../services/options');
|
|||||||
const myScryptService = require('../services/my_scrypt');
|
const myScryptService = require('../services/my_scrypt');
|
||||||
const log = require('../services/log');
|
const log = require('../services/log');
|
||||||
const passwordService = require("../services/password");
|
const passwordService = require("../services/password");
|
||||||
|
const options = require('../services/options');
|
||||||
|
|
||||||
function loginPage(req, res) {
|
function loginPage(req, res) {
|
||||||
res.render('login', { failedAuth: false });
|
res.render('login', { failedAuth: false });
|
||||||
@ -36,6 +37,7 @@ function setPassword(req, res) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
options.setOption("checkForUpdates", req.body['check-for-updates'] == true);
|
||||||
passwordService.setPassword(password1);
|
passwordService.setPassword(password1);
|
||||||
|
|
||||||
res.redirect('login');
|
res.redirect('login');
|
||||||
|
@ -33,6 +33,11 @@
|
|||||||
<input id="password" name="password2" placeholder="" class="form-control" type="password">
|
<input id="password" name="password2" placeholder="" class="form-control" type="password">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<input id="check-for-updates" type="checkbox" name="check-for-updates">
|
||||||
|
<label for="check-for-updates">Check for updates automatically</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<button class="btn btn-success">Set password</button>
|
<button class="btn btn-success">Set password</button>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user