mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-02 06:19:29 +00:00
Added register template and route
This commit is contained in:
@@ -13,6 +13,11 @@ router.get('/login', (req, res) => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
router.get('/register', (req, res) => {
|
||||||
|
return res.render('register', {
|
||||||
|
title: 'Stratos - Register'
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
root: '/',
|
root: '/',
|
||||||
|
|||||||
@@ -7,5 +7,6 @@
|
|||||||
|
|
||||||
<input type='submit' class='btn btn--primary' value='Log In'/>
|
<input type='submit' class='btn btn--primary' value='Log In'/>
|
||||||
</form>
|
</form>
|
||||||
|
<a href='/register'>Not got an account yet? Sign up</a>
|
||||||
<a href='/password-reset'>Forgotten your password?</a>
|
<a href='/password-reset'>Forgotten your password?</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
17
views/register.hbs
Normal file
17
views/register.hbs
Normal 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>
|
||||||
Reference in New Issue
Block a user