Skip to Content Skip to Menu

Password not sent with CBSubs

  • activha
  • activha
  • OFFLINE
  • Posts: 2327
  • Thanks: 117
  • Karma: 13
10 years 9 months ago #239784 by activha
Password not sent with CBSubs was created by activha
Hi Kyle

We have set up a config with no mod approval, no email config and automatic password to be sent.

We are on joomla 2.5.16 and CB 1.9.1 with CBsubs 3.0

All our CBsubs plan uses overrides with no mod approval and no email confirm.

[PASSWORD] in the inscription mail is working correctly for free users or free plans, but as soon as there is a payment to be made, the password is left blank in the inscription email, so the user is left with the only solution to go to lost password page.

I think that we already met this problem with CBSUbs before and that you solved it ? but cannot remember what was the problem ? and cannot retrieve the forum post relative to it

We need to use randomly generated password for our users.

This is a big problem as all our new registers complain that they dont receive their password

How can we solve this ? is it a CBsubs bug ?

Thanks

Please Log in or Create an account to join the conversation.

  • activha
  • activha
  • OFFLINE
  • Posts: 2327
  • Thanks: 117
  • Karma: 13
10 years 9 months ago - 10 years 9 months ago #239797 by activha
Replied by activha on topic Password not sent with CBSubs
Well I have narrowed down the problem with auto action plugin.

When enabled it seems that paying plan do not allow the password to be sent with the normal CB registration email.

When disabled the problem is solved.

Edit:
I have then narrowed down the problem to the use of onCPayUserStateChange to change user group if [var3] = A and [var2] = 7 for all users

This auto action forbids the [PASSWORD] field to be correctly substituted in the email sent with the registration.

Coud help me on this ? bug ?
Last edit: 10 years 9 months ago by activha.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
10 years 9 months ago #239825 by krileon
Replied by krileon on topic Password not sent with CBSubs
It nulls the password so the password won't save when the usergroup is changed as to change a usergroup it requires a user store. This is normal behavior. If I didn't null the password when it stored then it'd mess up passwords. No work around except to use a different trigger or send the emails before payment.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • activha
  • activha
  • OFFLINE
  • Posts: 2327
  • Thanks: 117
  • Karma: 13
10 years 9 months ago #239826 by activha
Replied by activha on topic Password not sent with CBSubs
Well as there is no payment for this plan what is the way to have the emails sent before payment ??

Will CBsubs next release support multiple groups for a plan ?

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
10 years 9 months ago - 10 years 9 months ago #239836 by krileon
Replied by krileon on topic Password not sent with CBSubs

Well as there is no payment for this plan what is the way to have the emails sent before payment ??

I guess you can't in that case. What email are you sending the password in? It should always be sent in the Pending email and not the Welcome email. You can try setting confirmation or approval to be before payment on the Workflows tab of your plan, but I'm not sure it'll do anything for free plans.

Will CBsubs next release support multiple groups for a plan ?

Yes.

I'll have it cache the password in next release of CB Auto Actions and have it restore its value after the usergroup change. That maybe able to fix the issue.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Last edit: 10 years 9 months ago by krileon.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
10 years 9 months ago - 10 years 9 months ago #239837 by krileon
Replied by krileon on topic Password not sent with CBSubs
Ok, try the below quickfix and see if that resolves your issue.

IN: /components/com_comprofiler/plugin/user/plug_cbautoactions/models/usergroup.php
ON: Line 46
FROM:
Code:
$user->set( 'password', null );
TO:
Code:
$cache = $user->get( 'password' ); $user->set( 'password', null );
ON: Line 160 (right after the "for" loop and before the closing of the function)
FROM:
Code:
}
TO:
Code:
} $user->set( 'password', $cache );

Line numbers may vary slightly. This should cache the password before nulling then set it back after it's done adding the usergroups.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Last edit: 10 years 9 months ago by krileon.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum