close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Captcha Not Restrictive - Login Page

Thread began 1/21/2011 12:56 pm by dlovas275157 | Last modified 1/24/2011 4:21 pm by Jason Byrnes | 1659 views | 9 replies |

dlovas275157

Captcha Not Restrictive - Login Page

I cannot understand why my captcha is not-restrictive. It passes and logs me in no matter what I enter in the captcha.

Attached my login page code.

Any help is appreciated.

Thnx

Attached Files
index.php.zip
Sign in to reply to this post

Jason ByrnesWebAssist

first thing is to test the servers session management. use the session test page from this thread to verify that sessions can be saved:
showpost.php?p=23826&postcount=2

Sign in to reply to this post

dlovas275157

Jason,

I tested my server's session management and it appears to be working correctly.

sessionTest.php

Any further suggestions are much appreciated.

Sign in to reply to this post

Jason ByrnesWebAssist

can you send a link to the login page please

Sign in to reply to this post

dlovas275157

Here is my login page link:

loginWA/

Sign in to reply to this post

Jason ByrnesWebAssist

when I test, it is not allowing a bad captcha value.

what I am seeing is that validation is failing with a bad captcha value, but the captcha error is not showing


it looks like the validation show if behavior was added to the captcha element for a validation that does not exist any more.


change the following code:

php:
<?php
if (ValidatedField('index_529','index_529'))  {
  if ((
strpos((",".ValidatedField("index_529","index_529").","), "," "3" ",") !== false || "3" == ""))  {
    if (!(
false))  {
?>
                               <table border="0" width="265" cellpadding="4" style="border:solid; border-width:1px; border-color:#900; margin-left:3px; margin-top:3px">
                                 <tr>
                                   <td><span style="font-family:Arial, Helvetica, sans-serif; font-size:11px; color:#b70000">Incorrect captcha code. Please try again.</span></td>
                                 </tr>
                               </table
                         
                          >
                               <?php //WAFV_Conditional index.php index_529(3:)
    
}
  }
}
?>



to:

php:
<?php
if (ValidatedField('index_529','index_529'))  {
  if ((
strpos((",".ValidatedField("index_529","index_529").","), "," "4" ",") !== false || "4" == ""))  {
    if (!(
false))  {
?>
                               <table border="0" width="265" cellpadding="4" style="border:solid; border-width:1px; border-color:#900; margin-left:3px; margin-top:3px">
                                 <tr>
                                   <td><span style="font-family:Arial, Helvetica, sans-serif; font-size:11px; color:#b70000">Incorrect captcha code. Please try again.</span></td>
                                 </tr>
                               </table
                         
                          >
                               <?php //WAFV_Conditional index.php index_529(4:)
    
}
  }
}
?>
Sign in to reply to this post

dlovas275157

Jason,

There still seems to be one problem. If I clear all cookies and sessions, then login for the first time, I can leave the captcha field blank and it will pass. Subsequent logins work fine, just probs on the first login before any cookies are stored.

This issue only occurs under those particular circumstances. Can you look at it one more time, and if we need to open a ticket (so I can provide you a valid login) let me know.

Thanks again. Attached is my latest code.

lkmg

Attached Files
index.php.zip
Sign in to reply to this post

Jason ByrnesWebAssist

I cant reproduce the problem.


no matter what i do, if i leave the captcha field blank, i get the validation error message.

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

Sign in to reply to this post

dlovas275157

Jason / Ray,

Below are the results of my support ticket:

To fix the issue, I moved my "set cookie" code below my "server validation" code.

This fixed it.

Thanks.

-D

Sign in to reply to this post

Jason ByrnesWebAssist

ahhhh, that makes a little sense, glad to hear you sorted it out.

Sign in to reply to this post
loading

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