Skip to content

Commit f940e0c

Browse files
authored
Merge pull request #540 from DroidsOnRoids/rejected-email-template
Rejected email hardcoded HTML replaced with template.
2 parents 7cb2968 + f4d99db commit f940e0c

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

lib/units/auth/oauth2/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ module.exports = function(options) {
5757
}
5858
else {
5959
log.warn('Missing or disallowed email in profile', req.user)
60-
res.send('<html><body>Missing or rejected email address ' +
61-
'<a href="/auth/oauth/">Retry</a></body></html>')
60+
res.render('rejected-email')
6261
}
6362
}
6463
)

res/app/views/rejected-email.pug

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
doctype html
2+
html
3+
head
4+
meta(charset='utf-8')
5+
base(href='/')
6+
title("STF")
7+
body
8+
Missing or rejected email address
9+
a(href='/auth/oauth/')
10+
Retry

0 commit comments

Comments
 (0)