Id like to import users, But i can not import there passwords due to them being hashed.
I would like to input a random password so i can import them in to user groups. Then i would want to send them the forgot password email. that has a link to reset there password.
Is there a automatic script i could run to send about 1,500 forgot password emails.
Import User, and reset password
Re: Import User, and reset password
Try following code to send password reset request to all store users
Code: Select all
CommerceBuilder.Users.UserCollection users = CommerceBuilder.Users.UserDataSource.LoadForStore();
foreach (CommerceBuilder.Users.User user in users)
user.GeneratePasswordRequest();
-
- Ensign (ENS)
- Posts: 9
- Joined: Fri Sep 12, 2008 8:41 am
Re: Import User, and reset password
Hi Mahzar,
Can you tell me where we put that code to run the script to send a password request to all users? We are launching our new site tonight and want to send that out as a marketing / reset password email to the users tomorrow. Thanks!
-Christina Brandstrom, Must Have Bag
Can you tell me where we put that code to run the script to send a password request to all users? We are launching our new site tonight and want to send that out as a marketing / reset password email to the users tomorrow. Thanks!
-Christina Brandstrom, Must Have Bag
Re: Import User, and reset password
viewtopic.php?f=42&t=9207
Read following thread's second post having latest attachment. You can place code in a very similar location. For example you can just rename unlock all button caption to Reset Password Request and then you can place above code in UnlockAllUsers_Click method.
Read following thread's second post having latest attachment. You can place code in a very similar location. For example you can just rename unlock all button caption to Reset Password Request and then you can place above code in UnlockAllUsers_Click method.