Forums

Password auto generate problem

webveins 29 Sep, 2011
Greetings,

I am using chronoforms for site registration. Everything is working fine.
When I try to use chronoform auto generate password feature. It doesn't email the password to user, whereas in debug mode it shows the password:

$post: Array ( [username] => webveins [email] => webveins@gmail.com [typeof_registration] => RAK Civil Services Employees [name] => asdf [lastname] => asdf [radio0] => Male [nationality] => Australia [job_title] => asdf [department] => asdf [emirates] => [add1] => [add2] => [city] => [state] => [pobox] => [country] => [telephone] => [mobile] => [chrono_verification] => zxyel [button_7] => Submit [a67b4da2bd804941e39f55b5a715d275] => 1 [1cf1] => 6d259384cb16ccba0431440b615d898b [chronoformname] => Registration [recordtime] => 2011-09-29 - 02:50:31 [ipaddress] => 106.79.33.72 [uid] => IZTc1YjUwYWFmOWU4b8851f1f4ee173eb60ff749afe5c9ead [cf_user_id] => 0 [password2] => aTNLQpaR [password] => aTNLQpaR ) 


What user gets in email is:
Once you confirm your email address, you will be notified by email of the progress of your registration process.

Email : webveins@gmail.com
Username : asdf
Password: {password}


i'm using {password} in email template body. Please suggest me where I am wrong.
An early response will be appreciable.

Thanks
Webveins.in
GreyHead 29 Sep, 2011
Hi webveins,

Please try using {password2} in the email. One of them gets deleted in the registration process :-(

Bob
webveins 29 Sep, 2011

Hi webveins,

Please try using {password2} in the email. One of them gets deleted in the registration process :-(

Bob


Hi Bob,

Thanks for your quick response.
I had tried using both
{password}
{password2}

But all in vain 😟 . Is their any coding bug. What I think Joomla registration plugin is mis-configured somewhere. Please suggest me some better option.

Thanks
webveins.in
webveins 17 Oct, 2011
I had sorted out the things... :wink:

Find in cf_joomla_registration.php under plugins the following code:

$post['password'] = $post['password2'] = JUserHelper::genRandomPassword();


and replace with

$post['password'] = $post['password2'] = $passw = JUserHelper::genRandomPassword();


and added this code:

$MyFormEmails->emails[$emailid - 1]->template = str_replace("{password}", $passw, $MyFormEmails->emails[$emailid - 1]->template);


Just before the following code:

$MyFormEmails->emails[$emailid - 1]->template = str_replace("{vlink}", JURI::base()."index.php?option=com_user&task=activate&activation=".$user->get('activation'), $MyFormEmails->emails[$emailid - 1]->template);


Working fine now..

http://www.webveins.in
Web Development Company
GreyHead 17 Oct, 2011
Hi webveins,

Well done, sorry not to have got back to your post earleir.

Bob
This topic is locked and no more replies can be posted.