More login-stuff
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
@@ -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>
|
|
||||||
@@ -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>
|
|
||||||
Reference in New Issue
Block a user