api tracking / enableRandomMacSyncFix are moved down.
user-email (add/ext) are now checked before passthrough.
2nd checking is with (user-limit-uptime>0) and (validity>=0) to avoid invalid entry.
0 validity = 0 interval. expire only when limit-uptime is reached.
still create user-scheduler with 0 interval. for the purpose of removing user/file/etc.
if hotspot folder not found, skip creating data file. Invalid hotspot-folder variable.
RandomMacSyncFix module revised/shortened.
autocreate data folder if not found.
autocreate todayincome system-script if not found.
autocreate monthlyincome system-script if not found.
onLogout script is revised. redundant, just in case user-scheduler is removed!
All possible error are now capture and reported to logs!
NOTE:
here's the simple fix for the issue of All Active users being logout when a user login and when RandomMacSyncFix is set to 1 (enabled) and using the stable version of mikrotik.
onLogin Script, on RandomMacSyncFix module. change the $user to $username! that's it!
fr => :foreach AU in=[/ip hotspot active find user="$user"] do={
to => :foreach AU in=[/ip hotspot active find user="$username"] do={
what new: