esprfid / esp-rfid

ESP8266 RFID (RC522, PN532, Wiegand, RDM6300) Access Control system featuring WebSocket, JSON, NTP Client, Javascript, SPIFFS
MIT License
1.33k stars 417 forks source link

Fix access logs and visualization #632

Closed matjack1 closed 3 weeks ago

matjack1 commented 2 months ago

Access logs were missing a lot of access denied, which are now added and the UI was displaying only the role of the person trying the access, not the actual result.

So now we are logging the card, the role and the result of the opening.

For example a standard card could have failed because it has expired, it's disabled or it's outside of the opening hours. In all these cases we should add a line in the access logs saying that the person with the specific role had a denied access.