issue #639 never sends the admin password by email on install

This commit is contained in:
plegall
2020-07-22 17:42:27 +02:00
parent 1fda692749
commit f52787b2db
3 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -498,7 +498,7 @@ else
log_user($user['id'], false);
// email notification
if (isset($_POST['send_password_by_mail']))
if (isset($_POST['send_credentials_by_mail']))
{
include_once(PHPWG_ROOT_PATH.'include/functions_mail.inc.php');
@@ -510,7 +510,7 @@ else
get_l10n_args('', ''),
get_l10n_args('Link: %s', get_absolute_root_url()),
get_l10n_args('Username: %s', $admin_name),
get_l10n_args('Password: %s', $admin_pass1),
get_l10n_args('Password: ********** (no copy by email)', ''),
get_l10n_args('Email: %s', $admin_mail),
get_l10n_args('', ''),
get_l10n_args('Don\'t hesitate to consult our forums for any help: %s', PHPWG_URL),