Skip to content

Commit 74d060a

Browse files
Merge pull request #31 from stepbystepcode/dev
Dev
2 parents 6a18e21 + 9898f88 commit 74d060a

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/pages/SignupPage.vue

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -48,26 +48,26 @@ const username = ref('');
4848
const password = ref('');
4949
const passwordVer = ref('');
5050
const 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+
// }
5959
const 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',

0 commit comments

Comments
 (0)