File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed
Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -48,26 +48,26 @@ const username = ref('');
4848const password = ref (' ' );
4949const passwordVer = ref (' ' );
5050const isPwd = ref (true );
51- function validatePassword (password ) {
52- return (
53- password .length > 8 &&
54- password !== password .toUpperCase () &&
55- password !== password .toLowerCase () &&
56- / \d / .test (password)
57- );
58- }
51+ // function validatePassword(password) {
52+ // return (
53+ // password.length > 8 &&
54+ // password !== password.toUpperCase() &&
55+ // password !== password.toLowerCase() &&
56+ // /\d/.test(password)
57+ // );
58+ // }
5959const signup = () => {
6060 if (username .value === ' ' || password .value === ' ' || passwordVer .value === ' ' )
6161 Swal .fire ({
6262 title: ' Please fill out all required fields.' ,
6363 icon: ' error' ,
6464 });
65- else if (! validatePassword (password .value ))
66- Swal .fire ({
67- icon: ' error' ,
68- title: ' Invalid Password' ,
69- text: ' Password must contain both uppercase and lowercase letters plus numbers' ,
70- });
65+ // else if (!validatePassword(password.value))
66+ // Swal.fire({
67+ // icon: 'error',
68+ // title: 'Invalid Password',
69+ // text: 'Password must contain both uppercase and lowercase letters plus numbers',
70+ // });
7171 else if (password .value !== passwordVer .value ) Swal .fire ({
7272 title: ' Passwords do not match' ,
7373 icon: ' error' ,
You can’t perform that action at this time.
0 commit comments