[#6781] Auto action does not send password

6 years 7 months ago - 6 years 7 months ago #297273 by activha
Hello

We have an auto action sending a welcome mail on trigger OnAfterUserRegistration

In the mail we send [PASSWORD]

This was working fine until version Version: 7.0.0+build.2017.09.12.16.19.10.94c3e1a12

Since then the password is not sent any longer

Can you help ?
Regards
Jean

Please Log in to join the conversation.

6 years 7 months ago #297276 by krileon
Replied by krileon on topic Auto action does not send password
That behavior hasn't changed. It can only access plaintext passwords during plaintext operations. That means directly after registration (frontend: onAfterUserRegistration, backend: onAfterNewUser), after profile edit if password changed (frontend: onAfterUserUpdate, backend: onAfterUpdateUser), and after logging in (onAfterLogin).

I've tested onAfterLogin and onAfterUserRegistration both properly giving plain text password. It grabs the plaintext password from POST so if you don't have the password field accessible to the user during registration it won't be able to grab the plaintext password.


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 to join the conversation.

6 years 7 months ago #297278 by activha
Replied by activha on topic Auto action does not send password
The password is auto generated by CB
That used to work fine until now but the recent update does not send it any longer
We only use OnAfterUserRegistration since frontend with this auto action

Please Log in to join the conversation.

6 years 7 months ago #297282 by krileon
Replied by krileon on topic Auto action does not send password
Try using [var1_password] to access it directly. The [password] substitution is a special case and was supposed to only be substituting when it was clearly available in POST. In all other cases it should be nulled to prevent passwords from storing accidentally during user stores in various actions. Will review adding a fallback from POST to grab from user object, but in most cases those will just be encoded.

forge.joomlapolis.com/issues/6781


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 to join the conversation.

6 years 7 months ago #297285 by activha
Replied by activha on topic Auto action does not send password
Var1 is working fine

Thanks
The following user(s) said Thank You: krileon

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.198 seconds

Facebook Twitter LinkedIn