Community discussions

 
pjulian
Member Candidate
Member Candidate
Topic Author
Posts: 267
Joined: Mon May 31, 2004 12:16 pm
Location: Sydney, Australia

Hotspot user logging

Wed May 16, 2012 5:53 pm

Hi guys, not sure if this is the right place for this question, sorry if it isn't.

We run a pretty heavily customized front end for Mikrotik hotspot services with a radius back-end and customized scripting and advertising through the login process.

We are wanting to get a bit more granularity with our logging and understanding a bit more about our users and track advertising a bit better.
Currently we log a fair bit of info into MySQL as the user logs in, browser type, site they are logging in from, device OS, date, time etc, one thing we haven't been able to grab which is messing with our heads is the login ID that the user enters.

Once the user enters their username and password on our login page, it runs the standard do.login function and then redirects the user after a successful login to a web pages which tells them they have logged in successfully, we re-write the "dst=" hidden field to do this.

What we need to do when we process the user login is to get a log entry at that point to grab the username.
The username is entered into a field called "username" on the webpage, which from memory is standard mikrotik method, but I need to know how I can grab that and use it for logging.

Any suggestions ?

Thanks
Paul
 
mdraca
newbie
Posts: 34
Joined: Fri Jan 29, 2010 2:06 pm

Re: Hotspot user logging

Fri May 18, 2012 12:18 pm

Can't you just add INSERT INTO.... in function doLogin()?
Before document.sendin.username.value = document.login.username.value;

Who is online

Users browsing this forum: Google [Bot] and 39 guests