GraseHotspot / grase-www-portal

Grase WWW Portal (Main Package)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot completely delete users

opened this issue · comments

I have problem here, when I delete the users of wi-fi from admin page it's not completely delete from radacct table, so when I add one same username that was out of quota. Then the quota of the user like data and time still saving the old record. Can you fix this?

I patching your code, with adding a mysql syntax
here my commit if you want to know
https://github.com/kafabih4raka/grase-www-portal/commit/458477dc9de184880f247831614e4725159b2db2

You should not delete vouchers with radactt lines from the database without compacting them, your way will make you loose hotspot stat, while compacting before deleting will keep them.

just my two cents.