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();
|
||||
$errors = [];
|
||||
@@ -24,6 +25,9 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
]);
|
||||
|
||||
if ($result['ok']) {
|
||||
if (!empty($result['email_verification_token'])) {
|
||||
saas_send_email_verification_mail($values['email'], (string)$result['email_verification_token']);
|
||||
}
|
||||
saas_session_login($result['identity']);
|
||||
if (saas_should_show_auth_links() && !empty($result['email_verification_token'])) {
|
||||
$_SESSION['saas_dev_email_verification_token'] = (string)$result['email_verification_token'];
|
||||
|
||||
Reference in New Issue
Block a user