exp:resetuserpassword
Reset a user password with admin authentication or root bypass.
Script bin/php/resetuserpassword.php, code in kernel/private/classes/commands/resetuserpassword.php. Run it from the installation root, as the user the web server runs as:
./console exp:resetuserpassword --help
php bin/php/resetuserpassword.php --helpHelp text
Reset a user password with admin authentication or root bypass.
Admin auth (required unless bypassed with --allow-root-user):
./bin/php/resetuserpassword.php -a admin -ap 'adminpass' -u admin -p 'newpass'
Root bypass (resets any user without admin auth):
./bin/php/resetuserpassword.php --allow-root-user -u admin -p 'newpass'
Generate a random password:
./bin/php/resetuserpassword.php -a admin -ap 'adminpass' -u admin -g -l 16Related
Generated by ./console exp:help:examples from bin/php/resetuserpassword.php, kernel/private/classes/commands/resetuserpassword.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.