progress on docs, fixes in basic setup

This commit is contained in:
2023-09-18 15:14:09 +02:00
parent 9a4d38be31
commit 130831f050
15 changed files with 143 additions and 108 deletions

View File

@@ -1,6 +1,6 @@
{
"init":true,
"setupDone":true,
"setupDone":false,
"twoFA":"enforce",
"twoFAMode":"enhanced",
"db":"mysql",

View File

@@ -22,6 +22,7 @@ module.exports = ( app, settings ) => {
app.post( '/setup/start', bodyParser.json(), ( request, response ) => {
if ( request.body.token === '' + fs.readFileSync( path.join( __dirname + '/../setupkey.txt' ) ) ) {
request.session.setupKeyOk = true;
response.send( 'ok' );
} else {
response.status( 400 ).send( 'incorrect' );