mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-30 23:56:00 +00:00
auto create ring user permissions
This commit is contained in:
parent
332b193b98
commit
ba675ec0da
1 changed files with 3 additions and 0 deletions
|
@ -289,8 +289,11 @@ class Users{
|
||||||
public static function createUser($values, $user_id){
|
public static function createUser($values, $user_id){
|
||||||
try {
|
try {
|
||||||
//make connection with and put into shard db
|
//make connection with and put into shard db
|
||||||
|
$values['user_id']= $user_id;
|
||||||
$dbs = new DBLayer("shard");
|
$dbs = new DBLayer("shard");
|
||||||
$dbs->execute("INSERT INTO user (Login, Password, Email) VALUES (:name, :pass, :mail)",$values);
|
$dbs->execute("INSERT INTO user (Login, Password, Email) VALUES (:name, :pass, :mail)",$values);
|
||||||
|
$dbr = new DBLayer("ring");
|
||||||
|
$dbr->execute("INSERT INTO ring_users (user_id, user_name, user_type) VALUES (:user_id, :name, 'ut_pioneer')",$values);
|
||||||
ticket_user::createTicketUser( $user_id, 1);
|
ticket_user::createTicketUser( $user_id, 1);
|
||||||
return "ok";
|
return "ok";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue