X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=maintenance%2FresetUserEmail.php;h=3ba5c6b382037ce24843149f6bce3a3454350632;hp=d6b4b7905d51da539447cd0be9342dd16a41fe37;hb=d46835ef4f877b03a9d48aa392dc23ae37042756;hpb=c2adecb31b16a36efdb509a575533c7f103a0576 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" ); } }