diff --git a/e107_core/templates/email_template.php b/e107_core/templates/email_template.php
index b64bd108f..20bb708d8 100644
--- a/e107_core/templates/email_template.php
+++ b/e107_core/templates/email_template.php
@@ -178,7 +178,7 @@ $EMAIL_TEMPLATE['signup']['body'] = "
".LAN_SIGNUP_18."
- ".LAN_LOGINNAME.": {LOGINNAME}
+ ".LAN_LOGIN.": {LOGINNAME}
".LAN_PASSWORD.": {PASSWORD}
".LAN_EMAIL_04."
diff --git a/e107_handlers/user_model.php b/e107_handlers/user_model.php
index 392502a48..7f565c192 100644
--- a/e107_handlers/user_model.php
+++ b/e107_handlers/user_model.php
@@ -1247,14 +1247,17 @@ class e_system_user extends e_user_model
return array();
}
- $pass_show = varset($userInfo['user_password']);
+
+
+ //
// signup email only
if($type == 'signup')
{
$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 ? ''.$userInfo['activation_url'].'' : $userInfo['activation_url'];
// $sc['SITENAME'] = SITENAME;
$sc['SITEURL'] = "".SITEURL."";
@@ -1348,7 +1351,7 @@ class e_system_user extends e_user_model
return array();
}
-
+
$templateName = $ret['template'];
$ret['email_subject'] = varset($EMAIL_TEMPLATE[$templateName]['subject'], $EMAIL_TEMPLATE['default']['subject']) ; // $subject;
@@ -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'] = "".SITEURL."";
$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'];
diff --git a/signup.php b/signup.php
index 6c4dce930..a980c578c 100644
--- a/signup.php
+++ b/signup.php
@@ -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";