code for create/confirm password issue
Posted: Thu Feb 05, 2015 9:17 pm
I have a couple things. On a mobile app I am trying to do a couple things here: There are two fields: Create password & Confirm password. they both need to be a minimum of 6 chars, and both need to match. I need to automation it so here is what I did
1. For the minimum 6 chars portion I tried this
if create_Password.SelectionLength < '6'
{
min_6_chars.Checked = "False";
}
else
{
min_6_chars.Checked = "True"
}
2. For the matching I tried this
if create_Password.TextValue.Equals confirm_Password.TextValue
{
passwords_must_match.Checked = "True";
}
else
{
passwords_must_match.Checked = "True";
}
Can anyoen tell me where I am wrong...or what I need to do instead. Would really appreciate it!
1. For the minimum 6 chars portion I tried this
if create_Password.SelectionLength < '6'
{
min_6_chars.Checked = "False";
}
else
{
min_6_chars.Checked = "True"
}
2. For the matching I tried this
if create_Password.TextValue.Equals confirm_Password.TextValue
{
passwords_must_match.Checked = "True";
}
else
{
passwords_must_match.Checked = "True";
}
Can anyoen tell me where I am wrong...or what I need to do instead. Would really appreciate it!