From 50e5b956f8402075cc78f79f3ac079d4750e55e2 Mon Sep 17 00:00:00 2001 From: botanic Date: Tue, 17 Dec 2013 04:59:53 -0800 Subject: [PATCH] fixed permissions on default admin account --- .../ryzom/tools/server/ryzom_ams/www/html/installer/libsetup.php | 1 + 1 file changed, 1 insertion(+) diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/installer/libsetup.php b/code/ryzom/tools/server/ryzom_ams/www/html/installer/libsetup.php index 1313cc25c..f21fb0c04 100644 --- a/code/ryzom/tools/server/ryzom_ams/www/html/installer/libsetup.php +++ b/code/ryzom/tools/server/ryzom_ams/www/html/installer/libsetup.php @@ -1692,6 +1692,7 @@ $dbw = new DBLayer("web"); $user_id = $dbw->executeReturnId("INSERT INTO ams_user (Login, Password, Email, Permission, Language) VALUES (:name, :pass, :mail, :permission, :lang)",$params); Users::createUser($params, $user_id); + Users::createPermissions($params); $dbl = new DBLayer("lib"); $dbl->execute("UPDATE ticket_user SET Permission = 3 WHERE TUserId = :user_id",array('user_id' => $user_id)); print "The admin account is created, you can login with id: admin, pass: admin!";