Compare commits
No commits in common. "d5cbdd63e0a315f4048ffa86c5f0b54d41d77e55" and "b15863581129006cbed50af9e5a4588458db00f0" have entirely different histories.
d5cbdd63e0
...
b158635811
@ -4,7 +4,6 @@
|
||||
"description": "Rooster voor Het Heerenlanden om leerlingen te laten weten of ze binnen of buiten gym hebben",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"body-parser": "^1.19.0",
|
||||
"express": "^4.17.1",
|
||||
"mustache-express": "^1.3.0",
|
||||
"mysql": "^2.18.1"
|
||||
|
@ -15,8 +15,6 @@ app.set('views', path.resolve('views/'));
|
||||
|
||||
app.engine('mustache', mustacheExpress(path.resolve('views/partials/'), '.mustache'));
|
||||
|
||||
app.use(express.urlencoded());
|
||||
|
||||
var vars = {
|
||||
username: 'ARN'
|
||||
}
|
||||
@ -33,11 +31,6 @@ app.get('/login/', (req, res) => {
|
||||
res.render('login', vars);
|
||||
});
|
||||
|
||||
app.post('/login', (req, res) => {
|
||||
console.log(req.body)
|
||||
res.send('login attempt using the following credentials:');
|
||||
});
|
||||
|
||||
app.get('/scss/:file', (req, res) =>
|
||||
res.sendFile(path.resolve('scss/' + req.params.file))
|
||||
);
|
||||
|
@ -5,11 +5,6 @@
|
||||
{{> nav}}
|
||||
<main>
|
||||
<h1>Login</h1>
|
||||
<form method="post" action="#">
|
||||
<input placeholder="Gebruikersnaam" type="text" name="username">
|
||||
<input placeholder="Wachtwoord" type="text" name="password">
|
||||
<button type="submit">Inloggen</button>
|
||||
</form>
|
||||
</main>
|
||||
{{> footer}}
|
||||
</body>
|
||||
|
Reference in New Issue
Block a user