mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 20:57:26 +02:00
Fixes #1462 - Hiding of password in signup email.
This commit is contained in:
@@ -178,7 +178,7 @@ $EMAIL_TEMPLATE['signup']['body'] = "
|
||||
<br />
|
||||
".LAN_SIGNUP_18."<br />
|
||||
<br />
|
||||
".LAN_LOGINNAME.": <b> {LOGINNAME} </b><br />
|
||||
".LAN_LOGIN.": <b> {LOGINNAME} </b><br />
|
||||
".LAN_PASSWORD.": <b> {PASSWORD} </b><br />
|
||||
<br />
|
||||
".LAN_EMAIL_04."<br />
|
||||
|
@@ -1247,7 +1247,9 @@ class e_system_user extends e_user_model
|
||||
return array();
|
||||
}
|
||||
|
||||
$pass_show = varset($userInfo['user_password']);
|
||||
|
||||
|
||||
//
|
||||
|
||||
// signup email only
|
||||
if($type == 'signup')
|
||||
@@ -1255,6 +1257,7 @@ class e_system_user extends e_user_model
|
||||
$HEAD = '';
|
||||
$FOOT = '';
|
||||
|
||||
$pass_show = e107::pref('core','user_reg_secureveri', false);
|
||||
|
||||
$ret['e107_header'] = $userInfo['user_id'];
|
||||
|
||||
@@ -1275,7 +1278,7 @@ class e_system_user extends e_user_model
|
||||
$sc = array();
|
||||
|
||||
$sc['LOGINNAME'] = intval($pref['allowEmailLogin']) === 0 ? $userInfo['user_loginname'] : $userInfo['user_email'];
|
||||
$sc['PASSWORD'] = $pass_show ? $pass_show : '******';
|
||||
$sc['PASSWORD'] = ($pass_show && !empty($userInfo['user_password'])) ? '*************' : $userInfo['user_password'];
|
||||
$sc['ACTIVATION_LINK'] = strpos($userInfo['activation_url'], 'http') === 0 ? '<a href="'.$userInfo['activation_url'].'">'.$userInfo['activation_url'].'</a>' : $userInfo['activation_url'];
|
||||
// $sc['SITENAME'] = SITENAME;
|
||||
$sc['SITEURL'] = "<a href='".SITEURL."' {$style}>".SITEURL."</a>";
|
||||
@@ -1364,8 +1367,8 @@ class e_system_user extends e_user_model
|
||||
$sc['DISPLAYNAME'] = $userInfo['user_login'] ? $userInfo['user_login'] : $userInfo['user_name'];
|
||||
$sc['SITEURL'] = "<a href='".SITEURL."'>".SITEURL."</a>";
|
||||
$sc['USERNAME'] = $userInfo['user_name'];
|
||||
$sc['USERURL'] = vartrue($userInfo['user_website']) ? $userInfo['user_website'] : "";
|
||||
$sc['PASSWORD'] = $pass_show ? $pass_show : '******';
|
||||
$sc['USERURL'] = vartrue($userInfo['user_website'], '');
|
||||
$sc['PASSWORD'] = vartrue($userInfo['user_password'], '***********');
|
||||
$sc['SUBJECT'] = $userInfo['mail_subject'];
|
||||
|
||||
|
||||
|
@@ -505,7 +505,7 @@ class signup
|
||||
$userInfo['user_password'] = "test-password";
|
||||
$userInfo['user_loginname'] = "test-loginname";
|
||||
$userInfo['user_name'] = "test-username";
|
||||
$userInfo['user_email'] = "test-username@email";
|
||||
$userInfo['user_email'] = "test-username@email.com";
|
||||
$userInfo['user_website'] = "www.test-site.com"; // This may not be defined
|
||||
$userInfo['user_id'] = 0;
|
||||
$userInfo['user_sess'] = "1234567890ABCDEFGHIJKLMNOP";
|
||||
|
Reference in New Issue
Block a user