Function 3: Check the password.
• Use RegularExpression to check the validity of the password has been entered at the request of the assignment.
• If the password is invalid, it returns the corresponding error message language you have selected. Function 4: Create a random capchar code. • Use the Random function to generate a random number sequence and then transfer it to the range of a character type (char). Function 5: Check code captcha • Use the function contains () to check input captcha characters exist in captcha chain was born an original. • If no valid captcha characters, it returns an error message corresponding to the language you selected. Function 6: Sign • Allows the user to enter account numbers, passwords and captcha from keyboard. • If a valid account number is allowing users to enter a password, and if the account number entered invalid, screen printing error and allows users to re-enter. • If a valid password is allowing users to enter a captcha opposite error printer screen and allows users to re-enter. • If captcha not valid, print screen error.
đang được dịch, vui lòng đợi..
