Skip Navigation

[Resolved] Send username and password in email from admin side when admin approve user

This thread is resolved. Here is a description of the problem and solution.

Problem:
Using Cred edit user form, send username and password in email from admin side when admin approve user.

Solution:
We follow WordPress guidelines and in CRED USER EDIT form the behavior is to do not send any password on email notification but just a notice that the profile has been changed. In other words, CRED behavior is the same like WordPress. Our 2nd Tier also reported that we will not add such security holes in Toolset.

With CRED User Edit form its not possible, You can send password using email notification using "CRED User Create form".

OR You need to do it manually with custom code: https://stackoverflow.com/questions/8470689/in-wordpress-i-want-to-send-the-user-his-password-by-mail

This support ticket is created 6 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 -
- 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 8 replies, has 2 voices.

Last updated by marcB-6 6 years, 8 months ago.

Assisted by: Noman.

Author
Posts
#562253
Screenshot_2.png

CRED is having notification facility In which we can send username and password to user after registration..but in my case I do not want to send password immediately , I would like to send it once admin check all the information of user and once he change the status of user from "Pending" to "active" & update user from the users section of admin..at that time I would like to send email to user for his/her username and password.

So Is there any way to get username and password?

hidden link

#562278

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi Marc,

Thank you for contacting Toolset support. We have another client who had the similar issue and was also able to solve it: https://toolset.com/forums/topic/pending-status-for-new-user/#post-426761

For more information about CRED User Forms email notifications: https://toolset.com/documentation/user-guides/cred-user-forms-email-notifications/

You can download and install from your account:
https://toolset.com/download/toolset-access/

Thank you

#562304
Screenshot_3.png

As per last post I have referred this link : https://toolset.com/forums/topic/pending-status-for-new-user/#post-426761 and read all post in the thread.

According to last 2 post in above link they were not got any solution,Please check attached screenshot.

Do you have any suggestion to this problem?

#562340

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hello Marc,

Yes, I just find out that feature was added in latest version of CRED 1.9.2 please check it and let us know:
https://toolset.com/download/toolset-cred/

General steps to achieve this:
1. Create a dropdown custom user field "User state" and set default value to “Inactive user”
2. Auto-generate a CRED user form to register a new user, remove dropdown field "User state"
3. Add a deferred notification to the form which will be sent
4. Add the form to a page, visit the page, submit the form
5. Go to the newly created user profile, select “Active user” and save
6. Wait for notification email... it sent the email to user

Thank you

#562369
Screenshot_7.png
Screenshot_8.png
Screenshot_4.png
Screenshot_5.png
Screenshot_6.png

Hello Noman,

I have tried the solution given by you and found 2 issues regarding that.

A) As you have mentioned in 2nd step

2. Auto-generate a CRED user form to register a new user, remove dropdown field "User state"

I have removed dropdown field "User state" but then it is not allowing me to select it for notification.Please check attached screenshot for the same.

B) If I keep dropdown field "User state" It is allowing me to select that field for notification, But it is not sending me the password in email..It is sending me lost password link.

Thanks

#562496

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hello Marc,

1. Ok, instead of removing User state field you can hide it using hidden="true" in the div like this, it will then be selectable in CRED notifications:

<div class="cred-field cred-field-user-state" hidden="true">
	<label class="cred-label" >User state</label>
	
[cred_field field='user-state' post='user' value='' urlparam='' ]
</div>

2. For sending user Password in email, both WP and CRED only sends it while adding a new user (with New User Form). In the Edit user form there is no shortcode like %%USER_PASSWORD%% it only has reset password shortcode.

For more details on this, see the ticket summary at the top of this:
https://toolset.com/forums/topic/email-notifications-password-instead-of-password-reset/

I am sorry but we don’t have an option to send password using CRED Edit form, other available fields and content will go fine over email. I searched some plugins which might help you in this:
https://wordpress.org/plugins/re-send-welcome-email/
https://wordpress.org/plugins/unconfirmed/
https://wordpress.org/plugins/email-users/
https://wordpress.org/plugins/wp-better-emails/

Thanks

#562644

Hello Noman,

As per this link : https://toolset.com/forums/topic/email-notifications-password-instead-of-password-reset/..It doesn't fixed the issue.

I have tried plugins suggested by you and one more plugin as well.
https://wordpress.org/plugins/new-user-approve/
but none of them is sending password to the user..

After trying everything, I found that I need to do it manually according to this : https://stackoverflow.com/questions/8470689/in-wordpress-i-want-to-send-the-user-his-password-by-mail.. It would be really helpful If you guys include this functionality in next release as many people are having same issue.

Thanks

#562736

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hello Marc,

Ok, I have now submitted this as a feature request to our team for further consideration.

Thank you for cooperation & understanding.

#562767

Hi Noman,

I did it manually but, I am looking forward to see this functionality in next release.

Thanks

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.