Use regexp
<cfif REFind("^[[:alnum:]]{6,10}$",form.password)>
OK
<cfelse>
NOT OK
</cfif>
Means : password can only contain alpha-numeric characters and has to be
6 to 10 characters long.
Pascal
> -----Original Message-----
> From: Stuart Kidd [mailto:[EMAIL PROTECTED]
> Sent: maandag 26 januari 2004 15:52
> To: CF-Talk
> Subject: More Password Validation
>
> Hi guys,
>
> I'm also trying to check my password only contains certain
> characters i.e. only a-z and 0-9.
>
> <cfset chr_list
> ='a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,0,1,2,3,
> 4,5,6,7,8,
> 9'>
>
> I've made a list of characters I'd like to check but am
> trying to work out how to use maybe the CONTAINS function.
>
> <cfif form.password contains???
>
> Thanks,
>
> Stuart
>
>
>
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
- RE: More Password Validation Pascal Peters
- RE: More Password Validation Stuart Kidd
- RE: More Password Validation John Stanley
- RE: More Password Validation John Beynon
- RE: More Password Validation Pascal Peters
- RE: More Password Validation Adrian Lynch