Fixed admin login/password update.
[fa-stable.git] / install / index.php
index 9e8ce243c7fd25e8dc5a2eb1e1b632edeab4495d..e9e0ef59630379763a9f41588f8940940f3f7c9d 100644 (file)
@@ -151,7 +151,8 @@ function do_install() {
                update_company_prefs(array('coy_name'=>$con['name']));
                $admin = get_user_by_login('admin');
                update_user_prefs($admin['id'], array(
-                       'language' => $_POST['lang'], 
+                       'language' => $con['lang'], 
+                       'password' => md5($con['pass']),
                        'user_id' => $con['admin']));
 
                if (!copy($path_to_root. "/config.default.php", $path_to_root. "/config.php")) {