Actually return something useful on success

This commit is contained in:
Chad Horohoe 2009-09-04 13:13:56 +00:00
parent 167f6795eb
commit 941825f152

View file

@ -41,6 +41,7 @@ class ChangePassword extends Maintenance {
try {
$user->setPassword( $this->getOption('password') );
$user->saveSettings();
$this->output( "Password set for " . $user->getName() );
} catch( PasswordError $pwe ) {
$this->error( $pwe->getText(), true );
}