Fix password reset link replacement
This commit is contained in:
parent
b677f19349
commit
f6dcb7a827
2 changed files with 2 additions and 2 deletions
|
@ -47,7 +47,7 @@
|
|||
|
||||
<mj-text>somebody has requested a password reset for this email address from <a href="https://wishthis.online">wishthis.online</a>. If this was you, click the button below to invalidate your current password and set a new one.</mj-text>
|
||||
|
||||
<mj-button href="#">Set new password</mj-button>
|
||||
<mj-button href="password-reset-link">Set new password</mj-button>
|
||||
|
||||
</mj-column>
|
||||
</mj-section>
|
||||
|
|
|
@ -72,7 +72,7 @@ if (isset($_POST['reset'], $_POST['email'])) {
|
|||
$mjml
|
||||
);
|
||||
$mjml = str_replace(
|
||||
'<mj-button href="#">',
|
||||
'password-reset-link',
|
||||
$_SERVER['HTTP_HOST'] . '/register.php?password-reset=' . $_POST['email'] . '&token=' . $token,
|
||||
$mjml
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue