Index: trunk/phase3/includes/installer/Installer.i18n.php |
— | — | @@ -168,6 +168,8 @@ |
169 | 169 | 'config-db-install-account' => 'User account for installation', |
170 | 170 | 'config-db-username' => 'Database username:', |
171 | 171 | 'config-db-password' => 'Database password:', |
| 172 | + 'config-db-password-empty' => 'Please enter a password for the new database user: $1. |
| 173 | +While some database systems do allow users with no passwords, it is not secure.', |
172 | 174 | 'config-db-install-username' => 'Enter the username that will be used to connect to the database during the installation process. |
173 | 175 | This is not the username of the MediaWiki account; this is the username for your database.', |
174 | 176 | 'config-db-install-password' => 'Enter the password that will be used to connect to the database during the installation process. |
Index: trunk/phase3/includes/installer/DatabaseInstaller.php |
— | — | @@ -527,6 +527,10 @@ |
528 | 528 | $this->setVar( 'wgDBpassword', $this->getVar( '_InstallPassword' ) ); |
529 | 529 | } |
530 | 530 | |
| 531 | + if( $this->getVar( '_CreateDBAccount' ) && strval( $this->getVar( 'wgDBpassword' ) ) == '' ) { |
| 532 | + return Status::newFatal( 'config-db-password-empty', $this->getVar( 'wgDBuser' ) ); |
| 533 | + } |
| 534 | + |
531 | 535 | return Status::newGood(); |
532 | 536 | } |
533 | 537 | |