dnaextrim / python_zklib

Attendance Machine Libraries for python with a connection to the network using the UDP protocol and port 4370
GNU General Public License v2.0
78 stars 122 forks source link

User access is disabled #11

Open tnsankar opened 7 years ago

tnsankar commented 7 years ago

HI,

I have tried to set user properties and it got disabled when user trying to access the finger print. I have followed up the code.

zk.setUser(uid=131, userid='131', name='Shank', password='123456', role=zkconst.LEVEL_ADMIN).

after ran this code, I am denied to verify my finger print and says disabled user. I couldn't delete the user in the device as well, it says access deny.

Could you please help me to solve this?

Thanks

Sankar

shubhamoy commented 6 years ago

I've rewritten the setUser method and tested it out on the ZKTeco IN01-A. Try testing it now.