Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Aiheen aloitti: gmc1 - kesäkuu 23, 2014, 03:40:19 IP

Otsikko: Send reset password email to all users...
Kirjoitti: gmc1 - kesäkuu 23, 2014, 03:40:19 IP
I found this post in forum - but no resolution:
http://www.simplemachines.org/community/index.php?topic=473431.0

I am migrating to SMF - and bringing the current user community (200-300)...
Obviously the password field won't come across - so my thought was to have everyone reset their passwords...

While I can obviously send them an email asking them to go to 'Login' and click 'forgot password' and enter their username or email... I thought it would be much friendlier (and be better received with higher likelihood people would come to the site...) if they each got an email with the password reset link ready to go...

The 'forgot password' form drives link: http://mydomain.com/index.php?action=reminder;sa=picktype
passing the user and a hidden field.
I've tried directly accessing the url with no success ('Your session timed out while posting. Please go back and try again.')

Is there a way to drive this programmatically (from php? perhaps with cURL?) that someone has already figured out?
Entering 200-300 id's manually isn't my idea of fun... :)

Thanks!
Greg
Otsikko: Re: Send reset password email to all users...
Kirjoitti: Kindred - kesäkuu 23, 2014, 03:47:17 IP
no... there is no way to do this in SMF by default...
you would have to either find or write a script to do it.
Otsikko: Re: Send reset password email to all users...
Kirjoitti: Illori - kesäkuu 23, 2014, 03:53:52 IP
cant you email them the link yourforumurl/index.php?action=reminder ? which will prompt them to start the password reset/forget procedure?
Otsikko: Re: Send reset password email to all users...
Kirjoitti: Kindred - kesäkuu 23, 2014, 03:59:10 IP
not sure... but I don't think that will work
Otsikko: Re: Send reset password email to all users...
Kirjoitti: Illori - kesäkuu 23, 2014, 04:03:46 IP
why not? that leads you to the form to insert your username or email address and go from there. it is the main way smf redirects users into the process.
Otsikko: Re: Send reset password email to all users...
Kirjoitti: gmc1 - kesäkuu 23, 2014, 04:16:43 IP
index.php?action=reminder does drive the page...
I was trying to make it simpler by having the reset email already sent - since I am trying to get a large number of people to do it.

I have no issue writing a script - its just figuring out what it needs to do... :)
Otsikko: Re: Send reset password email to all users...
Kirjoitti: Illori - kesäkuu 23, 2014, 04:24:36 IP
if you want to write a script you may be best posting in the coding discussion board and see how far you get there.