mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-01 22:59:28 +00:00
Added login template and route
This commit is contained in:
@@ -7,6 +7,12 @@ router.get('/', (req, res) => {
|
||||
});
|
||||
});
|
||||
|
||||
router.get('/login', (req, res) => {
|
||||
return res.render('login', {
|
||||
title: 'Stratos - Login'
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
module.exports = {
|
||||
root: '/',
|
||||
|
||||
11
views/login.hbs
Normal file
11
views/login.hbs
Normal 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>
|
||||
Reference in New Issue
Block a user