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