X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FresetUserEmail.php;h=3ba5c6b382037ce24843149f6bce3a3454350632;hb=0c4efc4dd942fe38cdbac6977a28f45314a9839e;hp=d6b4b7905d51da539447cd0be9342dd16a41fe37;hpb=77e3624caba072521fbc1826af2d47f9b29f4032;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/resetUserEmail.php b/maintenance/resetUserEmail.php index d6b4b7905d..3ba5c6b382 100644 --- a/maintenance/resetUserEmail.php +++ b/maintenance/resetUserEmail.php @@ -32,10 +32,10 @@ require_once __DIR__ . '/Maintenance.php'; class ResetUserEmail extends Maintenance { public function __construct() { $this->addDescription( "Resets a user's email" ); - $this->addArg( 'user', 'Username or user ID, if starts with #', true ); + $this->addArg( 'user', 'Username or user ID, if starts with #' ); $this->addArg( 'email', 'Email to assign' ); - $this->addOption( 'no-reset-password', 'Don\'t reset the user\'s password', false, false ); + $this->addOption( 'no-reset-password', 'Don\'t reset the user\'s password' ); parent::__construct(); } @@ -65,6 +65,7 @@ class ResetUserEmail extends Maintenance { // Kick whomever is currently controlling the account off $user->setPassword( PasswordFactory::generateRandomPasswordString( 128 ) ); } + $this->output( "Done!\n" ); } }