More login-stuff

This commit is contained in:
Kasper Rynning-Tønnesen
2020-01-20 16:42:07 +01:00
parent ede044c1dd
commit 63a73588fb
3 changed files with 1 additions and 49 deletions

View File

@@ -30,7 +30,7 @@ router.post("/register", function(req, res, next) {
}); });
router.get("/login", function(req, res) { router.get("/login", function(req, res) {
res.sendFile(path.join(__dirname + "/../public/login.html")); res.sendFile(path.join(__dirname + "/../public/index.html"));
}); });
router.post( router.post(

View File

@@ -1,24 +0,0 @@
<html>
<head>
<title>Vinlottis</title>
<link
href="https://fonts.googleapis.com/css?family=Roboto&display=swap"
rel="stylesheet"
/>
</head>
<body>
<h1>Official vin lottis homepage</h1>
<form method="post" action="/login">
<input type="text" name="username" />
<input type="password" name="password" />
<input type="submit" value="login" />
</form>
</body>
<style>
body {
font-family: "Roboto", sans-serif;
}
</style>
</html>

View File

@@ -1,24 +0,0 @@
<html>
<head>
<title>Vinlottis</title>
<link
href="https://fonts.googleapis.com/css?family=Roboto&display=swap"
rel="stylesheet"
/>
</head>
<body>
<h1>Official vin lottis homepage</h1>
<form method="post" action="/register">
<input type="text" name="username" />
<input type="password" name="password" />
<input type="submit" value="register" />
</form>
</body>
<style>
body {
font-family: "Roboto", sans-serif;
}
</style>
</html>