get hotspot user mac on login?

Hello
Is there any whay to get the MAC of a client when he connect to my hotspot ?
not by html

but using the script in the
hotspot/user-profile/ on-login?
I want to get the MAC and the time of the connection and send it to my syslog
(I guess it will also work on logout…)
how can I do this ?

Thanks ,

This does a bit more, but has the important bits to get you started: hotspot-to-wpa
(Currently on mobile, thus not writing the code.)

Great! this is what I wanted ,

Thank you!