1
0
mirror of https://github.com/matt-fidd/stratos.git synced 2026-01-01 22:39:26 +00:00

Added login template and route

This commit is contained in:
2022-01-31 15:08:56 +00:00
parent 877d3dcac3
commit 4ca12b94cb
2 changed files with 17 additions and 0 deletions

View File

@@ -7,6 +7,12 @@ router.get('/', (req, res) => {
}); });
}); });
router.get('/login', (req, res) => {
return res.render('login', {
title: 'Stratos - Login'
});
});
module.exports = { module.exports = {
root: '/', root: '/',

11
views/login.hbs Normal file
View File

@@ -0,0 +1,11 @@
{{> mainPageHeader name='Log In' }}
<div class='mainFormContainer'>
<form class='mainForm' action='/login' method='post'>
<input type='email' id='email' name='email' placeholder='Email Address' required/>
<input type='password' id='password' name='password' placeholder='Password' required/>
<input type='submit' class='btn btn--primary' value='Log In'/>
</form>
<a href='/password-reset'>Forgotten your password?</a>
</div>