rejetto forum
February 12, 2012, 03:29:39 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This forum is free, you do NOT need to register to post. But you may.
PROBLEMS? QUESTIONS? CLICK HERE!
Fill the survey!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Events and Unique Usernames  (Read 101 times)
0 Members and 1 Guest are viewing this topic.
fire2050
Occasional poster
*
Offline Offline

Posts: 9


View Profile
« on: February 07, 2012, 11:28:23 PM »

Hello all,

So I have been looking into a method to notify me if a user logs into my server.

The best method to do this in my opinion would be to utilize the events triggers and output the username to a text file.

Then run a batch file that would email the info to myself.

Is this doable via the events log? If so I cant seem to find the triggers for the events window and then how could I output the unique username of who logged in to a text file? Perhaps a list to a text file?

Ex: larry,moe,curly,shemp,admin

Thanks for the help.
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11759


View Profile
« Reply #1 on: February 09, 2012, 06:22:03 AM »

problem is: currently there's no real login in HFS.
It relies on http authentication, that's different. There's no session. (next HFS version won't work this way)
But you can workaround this by using cookies.
You also have commands to set and get cookies in HFS.
Logged
raybob
Tireless poster
****
Offline Offline

United States United States

Posts: 190



View Profile WWW
« Reply #2 on: February 10, 2012, 01:42:54 PM »

You could capture {.header|authorization.} under [request] with something like
 
Code:
{.if|{.header|authorization.}|{:{.save|user-{.time.}.txt|{.header|authorization.}.}:}.}

but the result would be encoded in base64 and would capture both passwords and usernames.
« Last Edit: February 10, 2012, 01:44:32 PM by raybob » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!


Google visited last this page February 11, 2012, 02:41:29 PM
anything