close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Record username on failed login attempt

Thread began 9/06/2012 4:45 am by trombonist440608 | Last modified 3/18/2014 2:18 pm by Jason Byrnes | 2570 views | 6 replies |

trombonist440608

Record username on failed login attempt

Hi All

First time posting on the forums, and I've searched through but couldn't find anything that matched what I am after, so here goes.

I have used the Security Assist module to build a login page, the authentication is working great but I want to capture failed logins and record them in a database for security reporting purposes.

I have all the code in place so that on a failed login attempt a record is added to a database table but I can't seem to identify the variable that holds the userame the user entered.

It appears that once the WA_AuthenticateUser($WA_Auth_Parameter); function has run the username variable is destroyed.

Is there a way I can maintain the username the user entered if the login fails?

Sign in to reply to this post

Jason ByrnesWebAssist

add a set session value behavior to the login page. Go to the server behaviors panel and click the plus button, select WebAssist -> Cookies -> Set Session Value

for the trigger, select any form post.

Set the name to something like "attemptedUserName"

for the value, click the plus button and select the Username form element.

In the insert behavior, you can use the session variable to capture the username

Sign in to reply to this post

trombonist440608

Thanks Jason that worked perfectly once I got the session code in the right spot.

Sign in to reply to this post

info4753

I'm looking for something similar.

How do I bind the failed attempt to the insert behaviour? I'm currently adding the username to a login table but not the information if the login was successful or not. How can I do this?

Furthermore I'd like to deactivate a member (set active flag to 0) if he had 3 failed attempts in a row. Any ideas how to achieve this?

Thanks for any help.

Sign in to reply to this post

Jason ByrnesWebAssist

that will take some hand coding to accomplish.

I would pass the username as a URL variable to the failed login page, and add the insert on the failed page.

If you need help setting this up we can help through a premiere support appointment:

http://www.webassist.com/premier_request.php

Sign in to reply to this post

info4753

Thanks Jason.

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...