more stuff on pw reset

This commit is contained in:
Julian Lam
2013-04-23 16:18:43 -04:00
parent 9fcbca8da9
commit e56e7b549b
6 changed files with 40 additions and 9 deletions

View File

@@ -24,6 +24,11 @@ var express = require('express'),
res.send(templates['header'] + templates['login'] + templates['footer']);
});
app.get('/reset/:code', function(req, res) {
refreshTemplates();
res.send(templates['header'] + templates['reset_code'] + templates['footer']);
});
app.get('/reset', function(req, res) {
refreshTemplates();
res.send(templates['header'] + templates['reset'] + templates['footer']);