fix(server/certs): Fix email and refactor
This commit is contained in:
@ -89,9 +89,11 @@ function sendCertifiedEmail(
|
|||||||
const notifyUser = {
|
const notifyUser = {
|
||||||
type: 'email',
|
type: 'email',
|
||||||
to: email,
|
to: email,
|
||||||
from: 'quincy@freecodecamp.org',
|
from: 'team@freeCodeCamp.org',
|
||||||
subject: dedent`Congratulations on completing all of the
|
subject: dedent`
|
||||||
freeCodeCamp certificates!`,
|
Congratulations on completing all of the
|
||||||
|
freeCodeCamp certificates!
|
||||||
|
`,
|
||||||
text: renderCertifedEmail({
|
text: renderCertifedEmail({
|
||||||
username,
|
username,
|
||||||
name
|
name
|
||||||
@ -196,7 +198,7 @@ export default function certificate(app) {
|
|||||||
if (user.name === '') {
|
if (user.name === '') {
|
||||||
return res.status(200).send(
|
return res.status(200).send(
|
||||||
dedent`
|
dedent`
|
||||||
We need your name so we can put it on your certificate.
|
We need your name so we can put it on your certificate.
|
||||||
<a href="https://github.com/settings/profile">Add your
|
<a href="https://github.com/settings/profile">Add your
|
||||||
name to your GitHub account</a>, then go to your
|
name to your GitHub account</a>, then go to your
|
||||||
<a href="https://www.freecodecamp.org/settings">settings
|
<a href="https://www.freecodecamp.org/settings">settings
|
||||||
|
Reference in New Issue
Block a user