Index: branches/new-installer/phase3/includes/installer/WebInstaller.php |
— | — | @@ -1580,7 +1580,11 @@ |
1581 | 1581 | } |
1582 | 1582 | if ( $user->idForName() == 0 ) { |
1583 | 1583 | $user->addToDatabase(); |
1584 | | - $user->setPassword( $this->getVar( '_AdminPassword' ) ); |
| 1584 | + try { |
| 1585 | + $user->setPassword( $this->getVar( '_AdminPassword' ) ); |
| 1586 | + } catch( PasswordError $pwe ) { |
| 1587 | + // need better failure here! |
| 1588 | + } |
1585 | 1589 | $user->saveSettings(); |
1586 | 1590 | $user->addGroup( 'sysop' ); |
1587 | 1591 | $user->addGroup( 'bureaucrat' ); |