mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
NEW Can use a specific profile to send email for password forgotten
This commit is contained in:
parent
2efb14c767
commit
46cde6431a
|
|
@ -138,7 +138,7 @@ $triggersendname = ''; // Disable triggers
|
|||
$paramname = 'id';
|
||||
$mode = 'emailfortest';
|
||||
$trackid = ($action == 'send' ? GETPOST('trackid', 'aZ09') : $action);
|
||||
$sendcontext = '';
|
||||
$sendcontext = 'standard';
|
||||
include DOL_DOCUMENT_ROOT.'/core/actions_sendmails.inc.php';
|
||||
|
||||
if ($action == 'presend' && GETPOST('trackid', 'alphanohtml') == 'test') {
|
||||
|
|
|
|||
|
|
@ -2601,7 +2601,7 @@ class User extends CommonObject
|
|||
}
|
||||
|
||||
$trackid = 'use'.$this->id;
|
||||
$sendcontext = 'password';
|
||||
$sendcontext = 'passwordreset';
|
||||
|
||||
$mailfile = new CMailFile(
|
||||
$subject,
|
||||
|
|
|
|||
|
|
@ -157,7 +157,7 @@ if (empty($reshook)) {
|
|||
// Technical failure
|
||||
$message = '<div class="error">'.$langs->trans("ErrorFailedToChangePassword").'</div>';
|
||||
} else {
|
||||
// Success
|
||||
// Success to set temporary password, send email
|
||||
if ($edituser->send_password($user, $newpassword, 1) > 0) {
|
||||
$message .= $messagewarning;
|
||||
$username = '';
|
||||
|
|
|
|||
|
|
@ -506,7 +506,7 @@ class CodingPhpTest extends CommonClassTest
|
|||
"'content'", "'replacestring'", "'htmlheader'", "'WEBSITE_HTML_HEADER'", "'WEBSITE_CSS_INLINE'", "'WEBSITE_JS_INLINE'", "'WEBSITE_MANIFEST_JSON'", "'PAGE_CONTENT'", "'WEBSITE_README'", "'WEBSITE_LICENSE'",
|
||||
'"mysqldump"', '"postgresqldump"',
|
||||
"'db_pass_root'", "'db_pass'", '"pass"', '"pass1"', '"pass2"', '"password"', "'password'",
|
||||
'"MAIN_MAIL_SMTPS_PW"', '"MAIN_MAIL_SMTPS_PW_EMAILING"', '"MAIN_MAIL_SMTPS_PW_TICKET"'))) {
|
||||
'"MAIN_MAIL_SMTPS_PW"', '"MAIN_MAIL_SMTPS_PW_EMAILING"', '"MAIN_MAIL_SMTPS_PW_TICKET"', '"MAIN_MAIL_SMTPS_PW_PASSWORDRESET"'))) {
|
||||
$ok = false;
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user