verify erstellen

This commit is contained in:
Cay 2026-03-11 16:26:48 +00:00
parent 32ef5aa3b1
commit 0b0ef6e6ed
3 changed files with 25 additions and 3 deletions

6
app.js
View File

@ -16,7 +16,11 @@ const PORT = process.env.PORT || 3000;
Security Middleware
======================== */
app.use(helmet());
app.use(
helmet({
contentSecurityPolicy: false,
}),
);
const limiter = rateLimit({
windowMs: 15 * 60 * 1000,

View File

@ -19,7 +19,25 @@ router.get("/:token", async (req, res) => {
[user[0].id],
);
res.send("Account erfolgreich aktiviert.");
res.send(`
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Account aktiviert</title>
<meta http-equiv="refresh" content="2;url=/" />
</head>
<body>
<h2>Account erfolgreich aktiviert</h2>
<p>Du wirst zum Login weitergeleitet...</p>
</body>
</html>
`);
});
module.exports = router;

View File

@ -1,7 +1,7 @@
const nodemailer = require("nodemailer");
const transporter = nodemailer.createTransport({
host: "mail.dynastyofknights.com",
host: "smtp.ionos.de",
port: 587,
secure: false,
auth: {