mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-17 13:01:42 +00:00
fixed some hidden error in the syncing
This commit is contained in:
parent
9ff6af3f88
commit
18bc121efd
1 changed files with 2 additions and 2 deletions
|
@ -29,14 +29,14 @@ class Sync{
|
|||
$decode = json_decode($record['query']);
|
||||
$values = array('user' => $decode[0], 'pass' => $decode[1]);
|
||||
//make connection with and put into shard db & delete from the lib
|
||||
$dbs->execute("SET Password = :pass WHERE Login = :user",$values);
|
||||
$dbs->execute("UPDATE user SET Password = :pass WHERE Login = :user",$values);
|
||||
$dbl->execute("DELETE FROM ams_querycache WHERE SID=:SID",array('SID' => $record['SID']));
|
||||
break;
|
||||
case 'change_mail':
|
||||
$decode = json_decode($record['query']);
|
||||
$values = array('user' => $decode[0], 'mail' => $decode[1]);
|
||||
//make connection with and put into shard db & delete from the lib
|
||||
$dbs->execute("SET Email = :mail WHERE Login = :user",$values);
|
||||
$dbs->execute("UPDATE user SET Email = :mail WHERE Login = :user",$values);
|
||||
$dbl->execute("DELETE FROM ams_querycache WHERE SID=:SID",array('SID' => $record['SID']));
|
||||
break;
|
||||
case 'createUser':
|
||||
|
|
Loading…
Reference in a new issue