This file contains hidden or 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
| $uids = db_select('users', 'u')->fields('u', array('uid'))->execute()->fetchAllAssoc('uid'); | |
| foreach (array_keys($uids) as $uid) { | |
| $u = user_load($uid); | |
| print $u->name . ';' . user_pass_reset_url($u) . "\n"; | |
| } |
This file contains hidden or 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
| - Flush bootstrap cache (hooks) | |
| drush ev "cache_clear_all('*', 'cache_bootstrap', TRUE)" | |
| - change username & password | |
| drush sqlq "UPDATE users SET name='admin' WHERE uid=1" | |
| drush upwd admin --password="admin" | |
| - Violent flush | |
| drush sqlq 'truncate cache' |
NewerOlder