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

Added register template and route

This commit is contained in:
2022-01-31 21:30:55 +00:00
parent 7335891a87
commit 5e31c06f75
3 changed files with 23 additions and 0 deletions

View File

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

View File

@@ -7,5 +7,6 @@
<input type='submit' class='btn btn--primary' value='Log In'/>
</form>
<a href='/register'>Not got an account yet? Sign up</a>
<a href='/password-reset'>Forgotten your password?</a>
</div>

17
views/register.hbs Normal file
View File

@@ -0,0 +1,17 @@
{{> mainPageHeader name='Sign Up' }}
<div class='mainForm'>
<form action='/register' method='post'>
<div class='input-group'>
<input type='text' id='fname' name='fname' placeholder='First Name' required/>
<input type='text' id='lname' name='lname' placeholder='Last Name' required/>
</div>
<input type='email' id='email' name='email' placeholder='Email Address' required/>
<input type='password' id='password' name='password' placeholder='Password' required/>
<input type='password' id='confPassword' name='confPassword' placeholder='Confirm Password' required/>
<input type='submit' class='btn btn--primary' value='Sign Up'/>
</form>
<a href='/login'>Already got an account? Log in</a>
</div>