Replace all wishthis URLs with current host
This commit is contained in:
parent
f40c3e31b5
commit
a073ad70ed
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ if (isset($_POST['reset'], $_POST['email'])) {
|
||||||
|
|
||||||
if ($user) {
|
if ($user) {
|
||||||
$mjml = file_get_contents(ROOT . '/src/mjml/password-reset.mjml');
|
$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 = new Email($_POST['email'], 'Password reset link', $mjml);
|
||||||
$emailReset->send();
|
$emailReset->send();
|
||||||
|
|
Loading…
Reference in a new issue