This topic is locked

After unsuccessful login

11/7/2007 06:48:20
ASPRunnerPro General questions
P
Philip author

Hi
I would like to offer users help after an unsuccessful login attempt.

How can I use the event "after unsuccessful login" to send me an e-mail with the UserID ?
Thanks

Philip

S
stealthwifi 11/7/2007

In the After unsuccessfull login use the action "Send simple email"
[codebox]'** Send simple email ****

' do not forget to setup email parameters like From, SMTP server etc

' on 'Security->User login settings' dialog
email="your@email.com"

message="Unsuccessfull Login" & vbcrlf

message=message & UCase(postvalue("username")) & vbcrlf

message=message & Request.ServerVariables("REMOTE_ADDR")

subject="Login Failure"

sendmail email, subject, message[/codebox]
email is the address you want the notice sent to.

P
Philip author 11/7/2007

Thanks for this code - that works fine !
Philip