1
0
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:
2022-01-31 21:35:30 +00:00
parent 5e31c06f75
commit 68beca8e14
2 changed files with 16 additions and 0 deletions

View File

@@ -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
View 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>