summaryrefslogtreecommitdiff
path: root/pages/account
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2015-01-14 01:13:53 +0100
committerBenny Baumann <BenBE@geshi.org>2015-01-14 01:13:53 +0100
commite2ad7792c3dd5c6b74a41f83882dd975306c8b37 (patch)
tree3c9a69f7d501251a205437bf40f2edd52c519316 /pages/account
parent748d87b9e8d45cfba944fd6ba5f4a0f6a98967f0 (diff)
parent4274f646ae105b9f5df0176fc8a59c1751cc54e3 (diff)
downloadcacert-devel-e2ad7792c3dd5c6b74a41f83882dd975306c8b37.tar.gz
cacert-devel-e2ad7792c3dd5c6b74a41f83882dd975306c8b37.tar.xz
cacert-devel-e2ad7792c3dd5c6b74a41f83882dd975306c8b37.zip
Merge branch 'bug-1129' into testserver-stable
Conflicts: pages/account/13.php
Diffstat (limited to 'pages/account')
-rw-r--r--pages/account/43.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/pages/account/43.php b/pages/account/43.php
index b876330..80b1f18 100644
--- a/pages/account/43.php
+++ b/pages/account/43.php
@@ -326,6 +326,28 @@ if(intval($_REQUEST['userid']) > 0) {
</tr>
<?
} else {
+ $body = sprintf(_("Hi %s,"),$row['fname'])."\n\n";
+ $ip = anonymizeIp($_SERVER['REMOTE_ADDR']);
+ if($ip === false) {
+ $ip = _("Error");
+ }
+ $body .= sprintf(_("You receive this automatic mail since you yourself or someone ".
+ "else looked up your secret questions and answers for a forgotten ".
+ "password.\n\n".
+ "Network: %s\nTime: %s\n\n".
+ "If it was you who looked up or changed that data, or clicked ".
+ "through the menu in your account, everything is in best order ".
+ "and you can ignore this mail.\n\n".
+ "But if you received this mail without a recognisable reason, ".
+ "there is a danger that an unauthorised person accessed your ".
+ "account, and you should promptly change your password and your ".
+ "secret questions and answers."),
+ $ip,
+ date("Y-m-d H:i:s T"))."\n\n";
+
+ $body .= _("Best regards")."\n"._("CAcert Support");
+
+ sendmail($row['email'], "[CAcert.org] "._("Email Notification"), $body, "support@cacert.org", "", "", "CAcert Support");
?>
<tr>
<td class="DataTD"><?=_("Lost Password")?> - Q1:</td>