X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FresetUserEmail.php;h=3ba5c6b382037ce24843149f6bce3a3454350632;hb=62991fcb7a5027b1eceb5656829c1c65bf9f98cb;hp=d6b4b7905d51da539447cd0be9342dd16a41fe37;hpb=15f6eff90c305d405fe4331c8a8dc8caa842e5b3;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" ); } }