Bug in "Resend Activation Emails"

17 years 1 week ago #35520 by yogiboy
Bug in "Resend Activation Emails" was created by yogiboy
Hello

I was doing some testing in my sending of Reactivation emails. I resent myself a reactivation email and this is what I got back.

Hello Aaron Star,

Thank you for registering at Hot Nude Yoga - Naked Gay Men Exploring Tantra. Your account is created and must be activated before you can use it.
To activate the account click on the following link or copy-paste it in your browser:
www.hotnudeyoga.com/index.php?option=com_comprofiler&task=confirm&confirmcode=
Thank you.

As You can see, the full link did not show up. Is there anything I can do?

Thanks
Aaron Star

Aaron Star
www.chelseayoga.net

Please Log in to join the conversation.

16 years 7 months ago #44105 by yogiboy
Replied by yogiboy on topic Re:Bug in "Resend Activation Emails"
again is anyone out there?

Aaron Star
www.chelseayoga.net

Please Log in to join the conversation.

16 years 6 months ago #47737 by gmallette
Replied by gmallette on topic Re:Bug in "Resend Activation Emails"
Hi Aaron,

Did you find and answer for this problem, my site also doe not put the confirm code sequence into the 'Confirm Registration' e-mail message.

Regards,

Glenn

Please Log in to join the conversation.

16 years 6 months ago #47739 by yogiboy
Replied by yogiboy on topic Re:Bug in "Resend Activation Emails"
No, this has not been resolved. It is a little frustrating that no one has resolved.

Aaron Star
www.chelseayoga.net

Please Log in to join the conversation.

16 years 4 months ago #52721 by B0ris
Replied by B0ris on topic Re:Bug in "Resend Activation Emails"
I have the same problem.
When user is not confirmed it gets an email with registration confirmation but the registration code (link) is not right: www.dijaki.info/index.php?option=com_comprofiler&task=confirm&confirmcode=

Anyone solved this ?

Please Log in to join the conversation.

16 years 4 months ago #52734 by B0ris
Replied by B0ris on topic Re:Bug in "Resend Activation Emails"
Since i din't find any solution to this problem, i manage to find a solution by myself. I'm just a beginner in PHP, so i don't know if this is a good solution, but it works on my site.

add this code to file comprofiler.php

arround line 1441 replace
[code:1]
elseif ($row->confirmed != 1){
$cbNotification = new cbNotification();
$cbNotification->sendFromSystem($row->id,getLangDefinition(stripslashes($ueConfig)),getLangDefinition(stripslashes($ueConfig)));
$resultError = _LOGIN_NOT_CONFIRMED;
}
[/code:1]

with this code:
[code:1]
elseif ($row->confirmed != 1){
$user_id = $row->user_id;
$randomHash = md5( cbMakeRandomString() );
$scrambleSeed = (int) hexdec(substr( md5 ( $mainframe->getCfg( 'secret' ) . $mainframe->getCfg( 'db' ) ), 0, 7));
$scrambledId = $scrambleSeed ^ ( (int) $row->id );
$rowExtras->cbactivation = "reg" . $randomHash . sprintf( "%08x", $scrambledId );
$_CB_database->setQuery( "UPDATE #__comprofiler "
. "\n SET cbactivation='".$rowExtras->cbactivation."' "
. "\n WHERE user_id='".$user_id."' "
);
$_CB_database->query();

$cbNotification = new cbNotification();
$cbNotification->sendFromSystem($row->id,getLangDefinition(stripslashes($ueConfig)),getLangDefinition(stripslashes($ueConfig)));
$resultError = _LOGIN_NOT_CONFIRMED;
}
[/code:1]

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.361 seconds

Facebook Twitter LinkedIn