Merge pull request #540 from DroidsOnRoids/rejected-email-template

Rejected email hardcoded HTML replaced with template.
This commit is contained in:
Karol Wrótniak
2020-02-26 01:16:54 +01:00
committed by GitHub
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')
}
}
)

View File

@@ -0,0 +1,10 @@
doctype html
html
head
meta(charset='utf-8')
base(href='/')
title("STF")
body
Missing or rejected email address
a(href='/auth/oauth/')
Retry