|
@@ 843-847 (lines=5) @@
|
| 840 |
|
$aData['token'] = $token; |
| 841 |
|
$aData['email'] = $email1; |
| 842 |
|
$aData['subject'] = 'E-Mail verification'; |
| 843 |
|
if (!$this->mail->sendMail('register/confirm_email', $aData)) { |
| 844 |
|
$this->setErrorMessage('Unable to request email confirmation: ' . $this->mail->getError()); |
| 845 |
|
return false; |
| 846 |
|
} |
| 847 |
|
return true; |
| 848 |
|
} else { |
| 849 |
|
$this->setErrorMessage('Failed to create confirmation token'); |
| 850 |
|
$this->debug->append('Unable to create confirm_email token: ' . $this->token->getError()); |
|
@@ 936-942 (lines=7) @@
|
| 933 |
|
} else { |
| 934 |
|
$this->log->log("info", "$username requested password reset, saved IP is [".$this->getUserIp($this->getUserId($username, true))."]"); |
| 935 |
|
} |
| 936 |
|
if ($this->mail->sendMail('password/reset', $aData)) { |
| 937 |
|
return true; |
| 938 |
|
} else { |
| 939 |
|
$this->setErrorMessage('Unable to send mail to your address'); |
| 940 |
|
return false; |
| 941 |
|
} |
| 942 |
|
return false; |
| 943 |
|
} |
| 944 |
|
|
| 945 |
|
/** |