Commit 4124667e authored by Frauke's avatar Frauke

Fixed routes

parent 4f965821
......@@ -6,9 +6,9 @@
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<h1>Welcome to Igent</h1>
<p>Please sign in on your website</p>
<h1>Welcome to Igent</h1>
<p>Please sign in on your website</p>
<form action="sign-in" method="post" id="sign-in">
<label for="password">Password</label>
<input type="password" name="password" id="password">
......@@ -10,6 +10,10 @@ app.use(express.static(path.join(__dirname, '../public')))
app.use(bodyParser.urlencoded({extended: false}))
app.get('/register', (req, res) => {
res.status(200).sendFile(path.join(__dirname, '../public/register.html'))
})'/register', (req, res) => {
const salt = JSON.stringify({salt: req.body.salt})
const publicKey = JSON.stringify({publickKey: req.body.publicKey})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment