Actually return something useful on success
This commit is contained in:
parent
167f6795eb
commit
941825f152
1 changed files with 1 additions and 0 deletions
|
|
@ -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 );
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue