Remove old internal mail call for password reset, fixes bug oc-934
This commit is contained in:
parent
44880ab3fa
commit
3c3a2b9b27
|
@ -23,7 +23,6 @@ if (isset($_POST['user'])) {
|
||||||
$msg = $tmpl->fetchPage();
|
$msg = $tmpl->fetchPage();
|
||||||
$l = OC_L10N::get('core');
|
$l = OC_L10N::get('core');
|
||||||
$from = 'lostpassword-noreply@' . OCP\Util::getServerHost();
|
$from = 'lostpassword-noreply@' . OCP\Util::getServerHost();
|
||||||
$r=mail($email, $l->t('Owncloud password reset'), $msg, 'From:' . $from);
|
|
||||||
OC_MAIL::send($email,$_POST['user'],$l->t('ownCloud password reset'),$msg,$from,'ownCloud');
|
OC_MAIL::send($email,$_POST['user'],$l->t('ownCloud password reset'),$msg,$from,'ownCloud');
|
||||||
echo('sent');
|
echo('sent');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue