M3 Mailversand und Public-Landingpage vorbereiten
- Mail-Transport fuer Reset- und Verifizierungslinks ergaenzen - Public-Landingpage mit Hero-Asset und App-CTAs bauen - Mail-Flow-Test, Smoke-Abdeckung und SaaS-Doku aktualisieren
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
|
||||
require_once __DIR__ . '/functions.php';
|
||||
require_once __DIR__ . '/app/saas-mail.php';
|
||||
|
||||
$pdo = app_db_pdo();
|
||||
$user = saas_require_login();
|
||||
@@ -20,6 +21,9 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
if (saas_should_show_auth_links() && !empty($result['token'])) {
|
||||
$verificationLink = 'email-verifizieren.php?token=' . urlencode((string)$result['token']);
|
||||
}
|
||||
if (!empty($result['token'])) {
|
||||
saas_send_email_verification_mail((string)$user['email'], (string)$result['token']);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$errors = $result['errors'];
|
||||
|
||||
Reference in New Issue
Block a user