Reset all users passwords

General questions relating to Joomla! There are other boards for more specific help on Joomla! features and extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
clarkcoet
Joomla! Apprentice
Joomla! Apprentice
Posts: 25
Joined: Mon Nov 30, 2009 6:42 pm

Reset all users passwords

Post by clarkcoet » Mon Oct 13, 2014 6:54 pm

Hi All,
My mail keeps getting hacked and spammed.
I need to reset all user passwords and I need to have the system send them system generated passwords.
I am not a techie so please explain carefully.
Thanks for your help

itoctopus
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4025
Joined: Mon Nov 25, 2013 4:35 pm
Location: Montreal, Canada
Contact:

Re: Reset all users passwords

Post by itoctopus » Tue Oct 14, 2014 12:25 am

Here's a query that resets everyone's password to a specific string (you can run it in phpMyAdmin):

Code: Select all

UPDATE #__users SET password=MD5('arandompassword')";
Note that the above will reset the password of every user to the same password. If you want to have a different password for each and every users (which should be the case), then you will need to write a small PHP script that will loop through all the users and set a random password for each one of those users and then email each user his/her password.
http://www.itoctopus.com - Joomla consulting at its finest
https://twitter.com/itoctopus - Follow us on Twitter

clarkcoet
Joomla! Apprentice
Joomla! Apprentice
Posts: 25
Joined: Mon Nov 30, 2009 6:42 pm

Re: Reset all users passwords

Post by clarkcoet » Tue Oct 14, 2014 8:17 pm

Thanks but I am not a developer so I will have to find someone to do it for me thanks


Locked

Return to “General Questions - 1.0.x”