diff --git a/lib/units/auth/oauth2/index.js b/lib/units/auth/oauth2/index.js index 1e8a23cc07..30144d55d3 100644 --- a/lib/units/auth/oauth2/index.js +++ b/lib/units/auth/oauth2/index.js @@ -57,8 +57,7 @@ module.exports = function(options) { } else { log.warn('Missing or disallowed email in profile', req.user) - res.send('
Missing or rejected email address ' + - 'Retry') + res.render('rejected-email') } } ) diff --git a/res/app/views/rejected-email.pug b/res/app/views/rejected-email.pug new file mode 100644 index 0000000000..920c065655 --- /dev/null +++ b/res/app/views/rejected-email.pug @@ -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