mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-24 15:56:22 +00:00
fixed permissions on default admin account
This commit is contained in:
parent
4be630c6cb
commit
7af50aa27d
1 changed files with 1 additions and 0 deletions
|
@ -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!";
|
||||
|
|
Loading…
Reference in a new issue