Skip to content

Commit

Permalink
Merge pull request openstf#540 from DroidsOnRoids/rejected-email-temp…
Browse files Browse the repository at this point in the history
…late

Rejected email hardcoded HTML replaced with template.
  • Loading branch information
koral-- authored Feb 26, 2020
2 parents 7cb2968 + f4d99db commit f940e0c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
3 changes: 1 addition & 2 deletions lib/units/auth/oauth2/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
}
)
Expand Down
10 changes: 10 additions & 0 deletions res/app/views/rejected-email.pug
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f940e0c

Please sign in to comment.