diff --git a/css/main_style.css b/assets/css/main_style.css similarity index 100% rename from css/main_style.css rename to assets/css/main_style.css diff --git a/assets/jquery-3.3.1.min.js b/assets/js/jquery-3.3.1.min.js similarity index 100% rename from assets/jquery-3.3.1.min.js rename to assets/js/jquery-3.3.1.min.js diff --git a/index.js b/index.js index dcbc130..c4021ce 100644 --- a/index.js +++ b/index.js @@ -51,10 +51,11 @@ app.get('/assets/*', function(req, res){ res.sendFile(__dirname + req.originalUrl) }) + app.post('/',function(req,res){ if( req.body.name === 'Simon' && req.body.pass === 'password' || - req.body.name === 'USER2' && req.body.pass === 'rfcgvhbßä06' + req.body.name === 'Suxxi' && req.body.pass === 'GSGSpandau' ){ req.session.name = req.body.name req.session.pass = req.body.pass diff --git a/views/index.hbs b/views/index.hbs index 603c253..19ad1e0 100644 --- a/views/index.hbs +++ b/views/index.hbs @@ -1,13 +1,13 @@ - +
Level | Gold | Class | +Aktion | Exp | |||
---|---|---|---|---|---|---|---|
{{name}} | -{{level}} | -{{gold}} | +{{level}} | +{{gold}} | {{class}} | +{{currentAction}} |