Add configurable branding
parent
3502f7387a
commit
bcd9c06899
|
@ -14,7 +14,7 @@ const sanitizeAddress = sanitizeParam('address').customSanitizer(
|
|||
router.get('^/:address([^@/]+@[^@/]+)', sanitizeAddress, (req, res, _next) => {
|
||||
const mailProcessingService = req.app.get('mailProcessingService')
|
||||
res.render('inbox', {
|
||||
title: "48hr.email | " + req.params.address,
|
||||
title: `${config.branding[0]} | ` + req.params.address,
|
||||
address: req.params.address,
|
||||
mailSummaries: mailProcessingService.getMailSummaries(req.params.address)
|
||||
})
|
||||
|
|
|
@ -7,9 +7,10 @@ const config = require('../../../application/config')
|
|||
|
||||
router.get('/', (req, res, _next) => {
|
||||
res.render('login', {
|
||||
title: '48hr.email | Your temporary Inbox',
|
||||
title: `${config.branding[0]} | Your temporary Inbox`,
|
||||
username: randomWord(),
|
||||
domains: config.email.domains
|
||||
domains: config.email.domains,
|
||||
madeby: config.branding[1]
|
||||
})
|
||||
})
|
||||
|
||||
|
@ -30,7 +31,8 @@ router.post(
|
|||
title: 'Login',
|
||||
username: req.body.username,
|
||||
domain: req.body.domain,
|
||||
userInputError: true
|
||||
userInputError: true,
|
||||
madeby: config.branding[1]
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
</head>
|
||||
<body>
|
||||
<main>
|
||||
<a href="https://48hr.email/">
|
||||
<a href="/">
|
||||
<img src="/images/logo.gif" class="logo" style="max-width: 75px">
|
||||
</a>
|
||||
{% block body %}{% endblock %}
|
||||
|
@ -28,7 +28,7 @@
|
|||
{% block footer %}
|
||||
<section class="container footer">
|
||||
<hr>
|
||||
<h4>48hr.email offered by <a href="https://crazyco.xyz/" style="text-decoration:underline">CrazyCo</a> | All Emails will be deleted after 48hrs</h4>
|
||||
<h4>48hr.email offered by <a href="{{ madeby }}" style="text-decoration:underline">CrazyCo</a> | All Emails will be deleted after 48hrs</h4>
|
||||
</section>
|
||||
{% endblock %}
|
||||
|
||||
|
|
Loading…
Reference in New Issue