Skip to content

Commit

Permalink
Merge pull request #1085 from threefoldtech/development_312_password
Browse files Browse the repository at this point in the history
Fix password validation
  • Loading branch information
AhmedHanafy725 authored Sep 12, 2023
2 parents e69c7c6 + b9f77dc commit 54e79d6
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/playground/src/components/smtp_server.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@
validators.required('Password is required.'),
validators.minLength('Password must be at least 6 characters.', 6),
validators.maxLength('Password cannot exceed 15 characters.', 15),
validators.pattern('Password should not contain whitespaces.', {
pattern: /^[^\s]+$/,
}),
]"
#="{ props: validatorProps }"
>
Expand Down
3 changes: 3 additions & 0 deletions packages/playground/src/weblets/tf_caprover.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@
validators.required('Password is required.'),
validators.minLength('Password must be at least 6 characters.', 6),
validators.maxLength('Password cannot exceed 15 characters.', 15),
validators.pattern('Password should not contain whitespaces.', {
pattern: /^[^\s]+$/,
}),
]"
#="{ props: validationProps }"
>
Expand Down
3 changes: 3 additions & 0 deletions packages/playground/src/weblets/tf_funkwhale.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@
validators.required('Password is required.'),
validators.minLength('Password must be at least 6 characters.', 6),
validators.maxLength('Password cannot exceed 15 characters.', 15),
validators.pattern('Password should not contain whitespaces.', {
pattern: /^[^\s]+$/,
}),
]"
#="{ props: validatorProps }"
>
Expand Down
3 changes: 3 additions & 0 deletions packages/playground/src/weblets/tf_kubernetes.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
validators.required('Token is required.'),
validators.minLength('Token minimum length is 6 chars.', 6),
validators.maxLength('Token max length is 15 chars.', 15),
validators.pattern('Token should not contain whitespaces.', {
pattern: /^[^\s]+$/,
}),
]"
#="{ props: validationProps }"
>
Expand Down
3 changes: 3 additions & 0 deletions packages/playground/src/weblets/tf_owncloud.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@
validators.required('Password is required.'),
validators.minLength('Password must be at least 6 characters.', 6),
validators.maxLength('Password cannot exceed 15 characters.', 15),
validators.pattern('Password should not contain whitespaces.', {
pattern: /^[^\s]+$/,
}),
]"
#="{ props: validatorProps }"
>
Expand Down
3 changes: 3 additions & 0 deletions packages/playground/src/weblets/tf_peertube.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@
validators.required('Password is required.'),
validators.minLength('Password must be at least 6 characters.', 6),
validators.maxLength('Password cannot exceed 15 characters.', 15),
validators.pattern('Password should not contain whitespaces.', {
pattern: /^[^\s]+$/,
}),
]"
#="{ props: validatorProps }"
>
Expand Down
3 changes: 3 additions & 0 deletions packages/playground/src/weblets/tf_taiga.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@
validators.required('Password is required.'),
validators.minLength('Password must be at least 6 characters.', 6),
validators.maxLength('Password cannot exceed 15 characters.', 15),
validators.pattern('Password should not contain whitespaces.', {
pattern: /^[^\s]+$/,
}),
]"
#="{ props: validatorProps }"
>
Expand Down
3 changes: 3 additions & 0 deletions packages/playground/src/weblets/tf_umbrel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@
validators.required('Password is required.'),
validators.minLength('Password must be at least 6 characters.', 6),
validators.maxLength('Password cannot exceed 15 characters.', 15),
validators.pattern('Password should not contain whitespaces.', {
pattern: /^[^\s]+$/,
}),
]"
#="{ props: validatorProps }"
>
Expand Down
3 changes: 3 additions & 0 deletions packages/playground/src/weblets/tf_wordpress.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@
validators.required('Password is required.'),
validators.minLength('Password must be at least 6 characters.', 6),
validators.maxLength('Password cannot exceed 15 characters.', 15),
validators.pattern('Password should not contain whitespaces.', {
pattern: /^[^\s]+$/,
}),
]"
#="{ props: validatorProps }"
>
Expand Down

0 comments on commit 54e79d6

Please sign in to comment.