[CONFIRMED] Registration emails [PASSWORD]

16 years 5 months ago #49561 by king.lui
Replied by king.lui on topic Re:[CONFIRMED] Registration emails [PASSWORD]
same problem and i don't have installed joomcomment.

I know, my english seems a little .. unusual .. but really, it's not bad, it's only a bavarian version :whistle:

Please Log in to join the conversation.

16 years 5 months ago #49562 by king.lui
Replied by king.lui on topic Re:[CONFIRMED] Registration emails [PASSWORD]
Try this:

=> comprofiler.class.php
=> function _replaceVariables

after this line (4982):
$msg = cbstr_ireplace("[CONFIRM]", $confirmLink, $msg );

put this (code from older cb-versions):
$array = array();
$array=get_object_vars($row);
foreach( $array AS $k=>$v) {
if(!is_object($v)) {
if (!(strtolower($k) == "password" && strlen($v) >= 32)) {
$msg = cbstr_ireplace("[".$k."]", getLangDefinition($v), $msg );
}
}
}

I know, my english seems a little .. unusual .. but really, it's not bad, it's only a bavarian version :whistle:

Please Log in to join the conversation.

16 years 5 months ago #49570 by WebTrooper
Replied by WebTrooper on topic Re:[CONFIRMED] Registration emails [PASSWORD]
King Lui, you Bavarian God! Thanks a gazillion! :woohoo:

Post edited by: WebTrooper, at: 2007/11/07 14:19

Please Log in to join the conversation.

16 years 5 months ago #49627 by lucser
i had on line 4992...
tryied but not working...
king.lui wrote:

Try this:

=> comprofiler.class.php
=> function _replaceVariables

after this line (4982):
$msg = cbstr_ireplace("[CONFIRM]", $confirmLink, $msg );

put this (code from older cb-versions):
$array = array();
$array=get_object_vars($row);
foreach( $array AS $k=>$v) {
if(!is_object($v)) {
if (!(strtolower($k) == "password" && strlen($v) >= 32)) {
$msg = cbstr_ireplace("[".$k."]", getLangDefinition($v), $msg );
}
}
}

Please Log in to join the conversation.

16 years 5 months ago #49668 by cord
Hi king.lui,

your workaround works partly for me:

the mail with the activation link now really does contain the password - that's the part that works and I do thank you for the hint!

But the welcome mail still does not resolve the variable but still contains [PASSWORD].

Is there some kind of solution for the welcome mail?

Cord

king.lui wrote:

Try this:

=> comprofiler.class.php
=> function _replaceVariables

after this line (4982):
$msg = cbstr_ireplace("[CONFIRM]", $confirmLink, $msg );

put this (code from older cb-versions):
$array = array();
$array=get_object_vars($row);
foreach( $array AS $k=>$v) {
if(!is_object($v)) {
if (!(strtolower($k) == "password" && strlen($v) >= 32)) {
$msg = cbstr_ireplace("[".$k."]", getLangDefinition($v), $msg );
}
}
}

Please Log in to join the conversation.

16 years 5 months ago #49680 by beat
@ king.lui : Thanks a lot for troubleshooting and providing the fix. :)


cord wrote:

Hi king.lui,

your workaround works partly for me:

the mail with the activation link now really does contain the password - that's the part that works and I do thank you for the hint!

But the welcome mail still does not resolve the variable but still contains [PASSWORD].

Is there some kind of solution for the welcome mail?

Cord


Cord,

This is absolutely normal behavior of CB.

CB can only send password in the email sent when pressing "register", as passwords are never stored in cleartext, but with one-way hashing, so they can be checked, but not reverted to cleartext.

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.302 seconds

Facebook Twitter LinkedIn