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

View file

@ -282,7 +282,7 @@ jQuery().ready(function(){ldelim}
</label>
<br>
<label>
<input type="checkbox" name="send_password_by_mail" checked="checked">
<input type="checkbox" name="send_credentials_by_mail" checked="checked">
{'Send my connection settings by email'|@translate}
</label>
</td>

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),

View file

@ -252,6 +252,7 @@ $lang['Password Reset'] = 'Password Reset';
$lang['password updated'] = "password updated";
$lang['Password'] = "Password";
$lang['Password: %s'] = 'Password: %s';
$lang['Password: ********** (no copy by email)'] = 'Password: ********** (no copy by email)';
$lang['Pause of slideshow'] = "Pause slideshow";
$lang['Permalink for album not found'] = 'Permalink for album not found';
$lang['Photo sizes'] = 'Photo sizes';