dnaextrim / php_zklib

Attendance Machine Library for PHP with a connection to the network using the UDP protocol and port 4370
http://dnaextrim.github.io/php_zklib/
GNU General Public License v2.0
162 stars 135 forks source link

how to delete user #46

Open shofiuddin opened 6 years ago

shofiuddin commented 6 years ago

Everything is working correctly. But how to delete a user from the device?

degeta10 commented 5 years ago

I use below library to delete a user. Link

This is the code the delete a user with id/pin 2.

 $tad_factory = new TADFactory(['ip'=>'192.168.0.103']);
 $tad = $tad_factory->get_instance();
 $tad->delete_user(['pin'=>2]);