mirror of
https://github.com/janishutz/libreevent.git
synced 2025-11-25 13:24:24 +00:00
progress on docs, fixes in basic setup
This commit is contained in:
@@ -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' );
|
||||
|
||||
Reference in New Issue
Block a user