Community discussions

MikroTik App
 
changeip
Forum Guru
Forum Guru
Topic Author
Posts: 3824
Joined: Fri May 28, 2004 5:22 pm

hotspot / free logins / on-login script

Wed Sep 03, 2008 12:50 am

Does anyone know if the user profile 'on-login' script can be passed any of the hotspot servlet variables?

/tool e-mail send from="email@example.org" to="email@example.org" subject="Hotspot Login" body=([:env print])
or
/tool e-mail send from="email@example.org" to="email@example.org" subject="Hotspot Login" body="$(mac)"

We are trying to allow users to get free internet access, but we need to collect some small info from them before they click the Trial link. UserManager won't work because there is no way to allow a free credit I guess.

If that isn't workable, are there any online radius servers that allow free logins ?
Colo and Wholesale Bandwidth Available! Sales at SanDiegoBroadband dot com
 
chris84
newbie
Posts: 31
Joined: Tue Mar 27, 2007 12:05 pm
Location: Vienna
Contact:

Re: hotspot / free logins / on-login script

Thu Jan 22, 2009 5:44 pm

We are trying to allow users to get free internet access, but we need to collect some small info from them before they click the Trial link. UserManager won't work because there is no way to allow a free credit I guess.
we would like to do exactly the same, do you have found a solution for that problem?
 
changeip
Forum Guru
Forum Guru
Topic Author
Posts: 3824
Joined: Fri May 28, 2004 5:22 pm

Re: hotspot / free logins / on-login script

Thu Jan 22, 2009 6:53 pm

I had to write an external hotspot login page that did it... couldnt figure out if the variables are active.

You could try using the on-login and setup a environment print to the log - maybe it will show what vars are populated at that moment.

Sam
Colo and Wholesale Bandwidth Available! Sales at SanDiegoBroadband dot com

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot], oyekanwahab and 212 guests