Fix: Validate PIN
This commit is contained in:
parent
d41de3f84d
commit
a0fc5358cc
|
@ -104,6 +104,13 @@ namespace GreatHomeChildcare
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// validate pin
|
||||||
|
if(strPin.Length < 4)
|
||||||
|
{
|
||||||
|
MessageBox.Show("Please enter a 4-digit pin number.", "Great Home Childcare", MessageBoxButtons.OK, MessageBoxIcon.None);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
checkExistingGuardian = SqliteDataAccess.GetGuardianByPin(Int32.Parse(strPin));
|
checkExistingGuardian = SqliteDataAccess.GetGuardianByPin(Int32.Parse(strPin));
|
||||||
|
|
||||||
//If this is a new guardian, check to see if that pin is in use.
|
//If this is a new guardian, check to see if that pin is in use.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user