mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-29 14:48:53 +00:00
Fix for bug #525357... Admin password should not be allowed to be blank for security reasons...
git-svn-id: file:///svn/phpbb/trunk@2278 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
2f882026ef
commit
03dc0a105f
1 changed files with 2 additions and 2 deletions
|
@ -500,7 +500,7 @@ else if( !empty($HTTP_POST_VARS['ftp_file']) && !defined("PHPBB_INSTALLED") )
|
|||
exit();
|
||||
}
|
||||
}
|
||||
else if( ( empty($install_step) || $admin_pass1 != $admin_pass2 || $dbhost == "" ) && !defined("PHPBB_INSTALLED") )
|
||||
else if( ( empty($install_step) || $admin_pass1 != $admin_pass2 || empty($admin_pass1) || $dbhost == "" ) && !defined("PHPBB_INSTALLED") )
|
||||
{
|
||||
//
|
||||
// Ok we haven't installed before so lets work our way through the various
|
||||
|
@ -514,7 +514,7 @@ else if( ( empty($install_step) || $admin_pass1 != $admin_pass2 || $dbhost == ""
|
|||
//
|
||||
$instruction_text = $lang['Inst_Step_0'];
|
||||
|
||||
if( $HTTP_POST_VARS['admin_pass1'] != $HTTP_POST_VARS['admin_pass2'] )
|
||||
if( ($HTTP_POST_VARS['admin_pass1'] != $HTTP_POST_VARS['admin_pass2']) || empty($HTTP_POST_VARS['admin_pass1'] )
|
||||
{
|
||||
$instruction_text = $lang['Password_mismatch'] . '<br />' . $instruction_text;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue