close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

'Show If' validation if incorrect password/username

Thread began 4/01/2011 1:04 pm by Jenny I | Last modified 4/01/2011 2:29 pm by Jason Byrnes | 4818 views | 3 replies |

Jenny I

'Show If' validation if incorrect password/username

Hi

I have searched the forums but cannot find a way to do the following.

1. On my login page I have my user name and password fields. If a user accidentally enters a wrong username or password I would like an error message to show after the log in button is pressed.

I know how to do this, I just do not know what to validate against. I have to somehow tell validation toolkit to find a match of the username and the password in the database. Secondly I dont know how this will work because the password in the database if encrypted.

If anyone could explain how i would achieve this I would be very grateful.

Thannks

Sign in to reply to this post

Jason ByrnesWebAssist

this is not done with validation show if.

Set the failed redirect in the security assist authenticate user server behavior to go back to the login page with a query string variable:

login.php?failed=true.


then on the login page add an if statement to show the error:
[php]
<?php if(isset($_GET['falied']) && $_GET['falied'] == "true") { ?>
Incorrrect user name or password
<?php } ?>

Sign in to reply to this post

Jenny I

It Worked!

Thanks Jason

That worked!

This is a handy piece of code like the many others you have provided.

Many thanks

Sign in to reply to this post

Jason ByrnesWebAssist

glad to hear it is working.

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...