Index: trunk/core/install.php =================================================================== diff -u -N -r6692 -r6693 --- trunk/core/install.php (.../install.php) (revision 6692) +++ trunk/core/install.php (.../install.php) (revision 6693) @@ -216,13 +216,28 @@ break; case 'install_setup': - $next_preset = $this->GetVar('preset'); - if (!$next_preset) { + if ($this->stepsPreset == 'already_installed') { // if preset was not choosen, then raise error $this->errorMessage = 'Please select action to perform'; } else { // if preset was choosen, then check root password entered + $user_name = $this->GetVar('user_name'); + $user_password = $this->GetVar('user_password'); + + if ($user_name == 'root') { + $sql = 'SELECT VariableValue + FROM '.$this->systemConfig['Database']['TablePrefix'].' + WHERE VariableName = "RootPass"'; + $root_password = $this->Conn->GetOne($sql); + $user_password = md5( md5($user_password) . 'b38'); + if ($user_password != $root_password) { + $this->errorMessage = 'Invalid User Name or Password. If you don\'t know your username or password, contact Intechnic Support'; + } + } + else { + $this->errorMessage = 'By now only login using "root" username is supported'; + } } break; }