Dear all ,

There was a problem with my code about password validation.


I want to create a validation that requires at least one digit (0-9) , one lowercase (a-z) , one uppercase (A-Z) and one symbol (!@#$%^&*-=+)



for example :
password -> (False)
passWord -> (False)
passWord8 -> (False)
passWord88# ->(True)
Each of them is required , if one of them is missing , then message error will appear.

My current code is using vtype validation and have its own pattern like (two uppercase + upper/lowercase + number).
for example :
[spoiler]
ALarm123
THen90
ZEbrA70
Here's my vtype :
Code:
Ext.form.VTypes=function()
{ 
var k =  /^([A-Z]{2})[A-Za-z\-]+[0-9_]+/;
return {
passpos : function(e)
{
return k.test(e)
},
passposText : "Wajib mengandung Huruf besar,huruf kecil, dan angka",
passposMask : /[A-Za-z0-9_]/i
}
}
How can i use password validation which is flexible to be applied..?

If you have any idea may you write down here.


Regards,