- if ( $this->getUser()->isAllowed( 'passwordreset' ) && $this->passwords ) {
- if ( $this->result->isGood() ) {
- $this->getOutput()->addWikiMsg( 'passwordreset-emailsent-capture2',
- count( $this->passwords ) );
- } else {
- $this->getOutput()->addWikiMsg( 'passwordreset-emailerror-capture2',
- $this->result->getMessage(), key( $this->passwords ), count( $this->passwords ) );
- }
-
- $this->getOutput()->addHTML( Html::openElement( 'ul' ) );
- foreach ( $this->passwords as $username => $pwd ) {
- $this->getOutput()->addHTML( Html::rawElement( 'li', [],
- htmlspecialchars( $username, ENT_QUOTES )
- . $this->msg( 'colon-separator' )->text()
- . htmlspecialchars( $pwd, ENT_QUOTES )
- ) );
- }
- $this->getOutput()->addHTML( Html::closeElement( 'ul' ) );
- }
-