Ajas,
IIRC cfinput will always use a hidden form field on the client to
force server side validation. If that's still the case (again, I
believe it is) this can be easily bypassed. (No, that doesn't solve
your issue, but it moves the problem elsewhere.)
-dhs
Dean H. Saxe, CISSP, CEH
d...@fullfrontalnerdity.com
"I have always strenuously supported the right of every man to his own
opinion, however different that opinion might be to mine. He who
denies another this right makes a slave of himself to his present
opinion, because he precludes himself the right of changing it."
-- Thomas Paine, 1783
On Mar 9, 2009, at 11:27 AM, Ajas Mohammed wrote:
Hi there,
I have this code which checks if password is strong i.e. atleast 8
characters long, consiting of one Upper case and one Lower case and
one Number.and if not alerts the user about it. I am using a regular
expression to do this as u can see from code below. The problem is
that once the alert is displayed, even if the user corrects the
error and enters a strong password, the error alert does not go
away. For example, if i entered password for the first time, then
obviously I will get alert saying password is not strong. Then,
afterwards if i correct password to be lets say Leave1234 which is 9
chars, has one uppper case, one lower case and has a number also, I
still end up getting password not strong message. I tried removing
onBlur,OnSubmit one at a time but doesnt work.
Any ideas????
Here is the code
New Password:
<!--- some possible regular expressions i used new_password --->
<!--- ^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}$ or --->
<cfinput type="password" name="new_password"
validate="regular_expression" pattern="^(?=.*\d)(?=.*[a-z])(?=.*[A-
Z]).{8,}$" validateat="onBlur,onSubmit,onServer" message="Your
password is not strong. Your password should be atleast 8 characters
long, consiting of one Upper case and one Lower case and one
Number." >
<Ajas Mohammed />
http://ajashadi.blogspot.com
We cannot become what we need to be, remaining what we are.
No matter what, find a way. Because thats what winners do.
You can't improve what you don't measure.
Quality is never an accident; it is always the result of high
intention, sincere effort, intelligent direction and skillful
execution; it represents the wise choice of many alternatives.
-------------------------------------------------------------
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform
For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------