X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FchangePassword.php;h=d7db3212dc60fc58531f54ca0a74db560934e42b;hb=2c1c8238707f0a5d5e09f4fb0b8a252fdfa6577f;hp=9fa66324f5a1ef3f6a507f21fef7d159894e6de8;hpb=52f5f388a40e08a76b6c4efc52fedd1c65cc166d;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/changePassword.php b/maintenance/changePassword.php index 9fa66324f5..d7db3212dc 100644 --- a/maintenance/changePassword.php +++ b/maintenance/changePassword.php @@ -46,10 +46,10 @@ class ChangePassword extends Maintenance { } elseif ( $this->hasOption( "userid" ) ) { $user = User::newFromId( $this->getOption( 'userid' ) ); } else { - $this->error( "A \"user\" or \"userid\" must be set to change the password for", true ); + $this->fatalError( "A \"user\" or \"userid\" must be set to change the password for" ); } if ( !$user || !$user->getId() ) { - $this->error( "No such user: " . $this->getOption( 'user' ), true ); + $this->fatalError( "No such user: " . $this->getOption( 'user' ) ); } $password = $this->getOption( 'password' ); try { @@ -64,7 +64,7 @@ class ChangePassword extends Maintenance { $user->saveSettings(); $this->output( "Password set for " . $user->getName() . "\n" ); } catch ( PasswordError $pwe ) { - $this->error( $pwe->getText(), true ); + $this->fatalError( $pwe->getText() ); } } }