3 function: check the password.• Use a RegularExpression to check the validity of the password has to be entered at the request of the article subject.• If the password is invalid, then return the corresponding error message language you have selected.4 functions: generate a random capchar code.• Use the Random function to generate a random sequence of numbers, and then move that number of characters (type char).Function 5: check the captcha code• Use the function contains () to check the captcha characters entered exists in the captcha string was born at first did not.• If the captcha characters are invalid, then returns the error message that corresponds to the language you have selected.6 functions: log in• Allows the user to enter the account number, password and captcha from the keyboard.• If a valid account number, then allows the user to enter a password and if the account number entered is not valid, then print out the error screen and allows the user to enter again.• If valid password then allows users to enter captcha reverse printed in error out of the screen and allows the user to enter again.• If the captcha is not valid then print out the error screen.
đang được dịch, vui lòng đợi..
