diff options
Diffstat (limited to 'lib/install.php')
-rw-r--r-- | lib/install.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/install.php b/lib/install.php index 1c5a7317..816f97c3 100644 --- a/lib/install.php +++ b/lib/install.php @@ -227,13 +227,18 @@ function install_create_config($web_path,$username,$password,$hostname,$database * install_create_account * this creates your initial account and sets up the preferences for the -1 user and you */ -function install_create_account($username,$password) { +function install_create_account($username,$password,$password2) { if (!strlen($username) OR !strlen($password)) { - Error::add('general',"No Username/Password specified"); + Error::add('general',_('No Username/Password specified')); return false; } + if ($password !== $password2) { + Error::add('general',_('Passwords do not match')) + return false; + } + $dbh = Dba::dbh(); if (!is_resource($dbh)) { |