mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-22 22:05:21 +02:00
Merge pull request #540 from DroidsOnRoids/rejected-email-template
Rejected email hardcoded HTML replaced with template.
This commit is contained in:
@@ -57,8 +57,7 @@ module.exports = function(options) {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
log.warn('Missing or disallowed email in profile', req.user)
|
log.warn('Missing or disallowed email in profile', req.user)
|
||||||
res.send('<html><body>Missing or rejected email address ' +
|
res.render('rejected-email')
|
||||||
'<a href="/auth/oauth/">Retry</a></body></html>')
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
10
res/app/views/rejected-email.pug
Normal file
10
res/app/views/rejected-email.pug
Normal 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
|
||||||
Reference in New Issue
Block a user