Bug in "Resend Activation Emails"

12 years 10 months ago #35520 by yogiboy

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:
Thank you.

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

Aaron Star
12 years 6 months ago #44105 by yogiboy
again is anyone out there?
12 years 4 months ago #47737 by gmallette
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.


12 years 4 months ago #47739 by yogiboy
No, this has not been resolved. It is a little frustrating that no one has resolved.
12 years 2 months ago #52721 by B0ris
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 ?
12 years 2 months ago #52734 by B0ris
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
elseif ($row->confirmed != 1){
$cbNotification = new cbNotification();
$resultError = _LOGIN_NOT_CONFIRMED;

with this code:
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."' "

$cbNotification = new cbNotification();
$resultError = _LOGIN_NOT_CONFIRMED;
Moderators: beatnantkrileon
Time to create page: 0.481 seconds

Facebook Twitter LinkedIn