Bug in "Resend Activation Emails"

12 years 5 months ago #35520 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
12 years 3 weeks ago #44105 by yogiboy
again is anyone out there?
11 years 11 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.

Regards,

Glenn
11 years 11 months ago #47739 by yogiboy
No, this has not been resolved. It is a little frustrating that no one has resolved.
11 years 8 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 ?
11 years 8 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
[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]
Moderators: beatnantkrileon
Time to create page: 0.382 seconds
Facebook Twitter Google LinkedIn