mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-01 22:59:28 +00:00
Added password reset template and route
This commit is contained in:
@@ -19,6 +19,12 @@ router.get('/register', (req, res) => {
|
||||
});
|
||||
});
|
||||
|
||||
router.get('/password-reset', (req, res) => {
|
||||
return res.render('password-reset', {
|
||||
title: 'Stratos - Password Recovery'
|
||||
});
|
||||
});
|
||||
|
||||
module.exports = {
|
||||
root: '/',
|
||||
router: router
|
||||
|
||||
10
views/password-reset.hbs
Normal file
10
views/password-reset.hbs
Normal file
@@ -0,0 +1,10 @@
|
||||
{{> mainPageHeader name='Password Recovery' }}
|
||||
|
||||
<div class='mainForm'>
|
||||
<form action='/password-reset' method='post'>
|
||||
<input type='email' id='email' name='email' placeholder='Email Address' required/>
|
||||
|
||||
<input type='submit' class='btn btn--primary' value='Request a password reset'/>
|
||||
</form>
|
||||
<a href='/login'>Back to login</a>
|
||||
</div>
|
||||
Reference in New Issue
Block a user