Created
July 9, 2012 18:26
-
-
Save febbraro/3078045 to your computer and use it in GitHub Desktop.
Cleanup / Obfuscate Drupal Users (sets default password for all users to 'test')
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE users | |
SET name = CONCAT('user', (select @rownum:=@rownum+1 rownum FROM (SELECT @rownum:=0) r)) | |
WHERE uid > 1; | |
UPDATE users | |
SET mail = CONCAT('user', (select @rownum:=@rownum+1 rownum FROM (SELECT @rownum:=0) r), '@example.com') | |
WHERE uid > 1; | |
UPDATE users | |
SET pass = '$S$DR.ROS3sDma71iTWcofZszOb8dMqrPi3PUWWNNc3rIwcG4ikL2gS' | |
where uid > 1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment