projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rollback. Update material cost when quantity on hand is zero. @notrinos.
[fa-stable.git]
/
includes
/
current_user.inc
diff --git
a/includes/current_user.inc
b/includes/current_user.inc
index edfae0a92b2b8b6725f0d39f32dc8109cee79d87..c3d162e037e1d440175cfd6f6118f0a6c2b01d46 100644
(file)
--- a/
includes/current_user.inc
+++ b/
includes/current_user.inc
@@
-158,8
+158,14
@@
class current_user
$hash = md5($password);
update_user_password($user['id'], $user['user_id'], $hash);
$hash = md5($password);
update_user_password($user['id'], $user['user_id'], $hash);
-
- mail($email, _("New password for")." ".$SysPrefs->app_title, $password);
+
+ $sender = get_company_pref('email');
+ if (empty($sender))
+ $header = "";
+ else
+ $header = "From: $sender";
+
+ mail($email, _("New password for")." ".$SysPrefs->app_title, $password, $header);
return true;
}
return true;
}