Community discussions

MikroTik App
 
obadaabdullah
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 71
Joined: Wed Jan 08, 2014 7:41 pm

disabling users after x days

Thu Apr 24, 2014 11:14 pm

hi all
i want to disable my hotspot user xxx after d days of his first log in
can i send him a message that he is disabled??
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 2954
Joined: Tue Feb 25, 2014 12:49 pm
Location: Capalbio, Tuscany, Italy

Re: disabling users after x days

Fri Apr 25, 2014 3:02 am

No, or is enabled, and you can display anything to client,
or if disabled the user can not see anything.
I'm Italian, not English. Sorry for my imperfect grammar.
 
obadaabdullah
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 71
Joined: Wed Jan 08, 2014 7:41 pm

Re: disabling users after x days

Fri Apr 25, 2014 12:34 pm

No, or is enabled, and you can display anything to client,
or if disabled the user can not see anything.
sorry but what about the first quistion
how to automatically disable user xxx after d day??
and thanks cuz you r always the first
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 2954
Joined: Tue Feb 25, 2014 12:49 pm
Location: Capalbio, Tuscany, Italy

Re: disabling users after x days

Fri Apr 25, 2014 2:46 pm

The users are inside hotspot/users or inside user-manager package?

I have some hint, but no solution ready.
1) Run script on scheduled base than write in a comment the first date and time the user log in, if comment are empty. This maintain the info also on reboot!!!
2) Another script check, on scheduled time, if the date and time in user comment plus desired time (like 4 days) are bigger than actual time, then disable user.

I hope you like my hint.
I'm Italian, not English. Sorry for my imperfect grammar.
 
obadaabdullah
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 71
Joined: Wed Jan 08, 2014 7:41 pm

Re: disabling users after x days

Tue Apr 29, 2014 10:59 am

The users are inside hotspot/users or inside user-manager package?

I have some hint, but no solution ready.
1) Run script on scheduled base than write in a comment the first date and time the user log in, if comment are empty. This maintain the info also on reboot!!!
2) Another script check, on scheduled time, if the date and time in user comment plus desired time (like 4 days) are bigger than actual time, then disable user.

I hope you like my hint.
they r in hotspot/user , would you please make your hint more clear (by scripts)
i made a way and don't know if it's good or not, " i made a 7 profile (sat,sun....) when user make subscribe i give him a profile according to this day, and then there is a sched every next sat it will disable all users of sat profile and so on"
i guess it's not that good but good enough for now

Who is online

Users browsing this forum: No registered users and 14 guests