Replace all wishthis URLs with current host

This commit is contained in:
Jay Trees 2022-03-01 10:50:35 +01:00
parent f40c3e31b5
commit a073ad70ed

View file

@ -51,7 +51,7 @@ if (isset($_POST['reset'], $_POST['email'])) {
if ($user) {
$mjml = file_get_contents(ROOT . '/src/mjml/password-reset.mjml');
$mjml = str_replace('https://wishthis.online', $_SERVER['HTTP_HOST'], $mjml);
$mjml = str_replace('wishthis.online', $_SERVER['HTTP_HOST'], $mjml);
$emailReset = new Email($_POST['email'], 'Password reset link', $mjml);
$emailReset->send();