Skip to Content Skip to Menu

Change password for several users

  • aalisg
  • aalisg
  • OFFLINE
  • Posts: 102
  • Thanks: 7
  • Karma: 0
2 months 35 minutes ago #339192 by aalisg
Change password for several users was created by aalisg
Hello,

We have pre-registered a lot of users (more than 300) and we would like now to give them their credentials (email address and password) so they can log in into our website.

In order to be able to communicate them their temporary password we stored a copy of them in plain form in another field.

The fact is that for security reasons we would like to change the temporary passwords we attributed them.

With a SQL function we were able to change these passwords stored in plain form in the other field. But now, what we would like to do, is to copy these passwords in plain form in the "real" password field so the change will be really effective.

Is there a way to do this automatically for a specific range of users because it will be very exhausting to do this manually for the more than 300 users concerned?

Regards,

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48536
  • Thanks: 8290
  • Karma: 1445
1 month 4 weeks ago #339198 by krileon
Replied by krileon on topic Change password for several users
How are you pre-registering them? Backend user creation and user import both can send their registration emails to them, which can include the password if you use randomly generated passwords. This way each user gets a random unique password. Next when creating them toggle on Reset Password at the same time. Now their randomly generated password is single use and they'll have to change it on first login. I do not recommend storing passwords in plaintext anywhere at any time.


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.

  • aalisg
  • aalisg
  • OFFLINE
  • Posts: 102
  • Thanks: 7
  • Karma: 0
1 month 4 weeks ago - 1 month 4 weeks ago #339205 by aalisg
Replied by aalisg on topic Change password for several users
Hello and thank you for your reply,

The fact is that the users are allready pre-registered. This password storage in plain text is temporary and they will be deleted as soon as the users will be communicated their credentials.

Regards,
Last edit: 1 month 4 weeks ago by aalisg. Reason: Typo

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48536
  • Thanks: 8290
  • Karma: 1445
1 month 4 weeks ago #339208 by krileon
Replied by krileon on topic Change password for several users
The only way to automate clearing that field then would be to use CB Auto Actions. You'd need to have a Field action on the onAfterUserUpdate trigger then check if their password was changed. Easiest way to do that is checking if [var1_password] is empty or not or checking for [post_password] being empty or not. Your field action can then clear that field.


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.

Moderators: beatnantkrileon
Powered by Kunena Forum