add FRONTEND_URL and password-reset implementation
This commit is contained in:
parent
f6da5ede9a
commit
b0bd323bee
@ -5,3 +5,4 @@ SMTP_PASS="secret.1"
|
||||
EMAIL_FROM="noreply@lauf-fuer-kaya.de"
|
||||
EMAIL_REPLYTO="info@lauf-fuer-kaya.de"
|
||||
REDIS_URL=redis://localhost:6379
|
||||
FRONTEND_URL="https://run.lauf-fuer-kaya.de"
|
@ -42,6 +42,9 @@ emailRouter.post('/', zValidator('json', sendEmailSchema), async (c) => {
|
||||
const dataURL = await generateBarcodeDataURL(data.barcode_content);
|
||||
data.barcode_url = dataURL;
|
||||
}
|
||||
if (templateName === "password-reset") {
|
||||
data.reset_link= `${process.env.FRONTEND_URL}/reset/${(Buffer.from(data.token)).toString("base64")}`
|
||||
}
|
||||
await emailService.sendEmail({
|
||||
to,
|
||||
subject,
|
||||
|
File diff suppressed because one or more lines are too long
@ -1,13 +1,17 @@
|
||||
Anfrage zum Zurücksetzen des Passworts
|
||||
Hallo 👋
|
||||
|
||||
Hallo {{name}},
|
||||
Wir haben eine Anfrage zum Zurücksetzen deines Passworts erhalten.
|
||||
Verwende den folgenden Link, um ein neues Passwort zu erstellen:
|
||||
{{reset_link}}
|
||||
|
||||
Wir haben eine Anfrage zum Zurücksetzen Ihres Passworts erhalten. Verwenden Sie den folgenden Link, um ein neues Passwort zu erstellen:
|
||||
{{resetLink}}
|
||||
Falls du diese Anfrage nicht gestellt hast, ignoriere bitte diese E-Mail.
|
||||
|
||||
Dieser Link läuft in {{expiresIn}} ab.
|
||||
Sportliche Grüße 🏃♂️
|
||||
Dein Team Lauf für Kaya!
|
||||
|
||||
Falls Sie diese Anfrage nicht gestellt haben, ignorieren Sie bitte diese E-Mail oder kontaktieren Sie den Support, wenn Sie Bedenken haben.
|
||||
-
|
||||
|
||||
Mit freundlichen Grüßen,
|
||||
Ihr Support-Team
|
||||
Lauf für Kaya!
|
||||
Powered by ODIT.Services (https://odit.services)
|
||||
Impressum: https://lauf-fuer-kaya.de/impressum/
|
||||
Datenschutzerklärung: https://lauf-fuer-kaya.de/datenschutz/
|
File diff suppressed because one or more lines are too long
@ -1,13 +1,17 @@
|
||||
Password Reset Request
|
||||
Hello 👋
|
||||
|
||||
Hello {{name}},
|
||||
We received a request to reset your password.
|
||||
Use the following link to create a new password:
|
||||
{{reset_link}}
|
||||
|
||||
We received a request to reset your password. Use the following link to create a new password:
|
||||
{{resetLink}}
|
||||
If you didn't request this password reset, please ignore this email.
|
||||
|
||||
This link will expire in {{expiresIn}}.
|
||||
Sporty Greetings 🏃♂️
|
||||
Your Team Lauf für Kaya!
|
||||
|
||||
If you didn't request this password reset, please ignore this email or contact support if you have concerns.
|
||||
-
|
||||
|
||||
Best regards,
|
||||
Your Support Team
|
||||
Lauf für Kaya!
|
||||
Powered by ODIT.Services (https://odit.services)
|
||||
Imprint: https://lauf-fuer-kaya.de/impressum/
|
||||
Privacy Policy: https://lauf-fuer-kaya.de/datenschutz/
|
Loading…
x
Reference in New Issue
Block a user