Rejected email hardcoded HTML replaced with template.

This commit is contained in:
Karol Wrótniak
2017-02-14 18:26:48 +01:00
parent 353599a69a
commit f4d99dba3f
2 changed files with 11 additions and 2 deletions

View File

@@ -57,8 +57,7 @@ module.exports = function(options) {
}
else {
log.warn('Missing or disallowed email in profile', req.user)
res.send('<html><body>Missing or rejected email address ' +
'<a href="/auth/oauth/">Retry</a></body></html>')
res.render('rejected-email')
}
}
)