Skip to content

Commit

Permalink
Merge pull request #63 from taronaeo/feat/fileviruschecks
Browse files Browse the repository at this point in the history
refactor(backend): FOR FILE UPLOAD
  • Loading branch information
taronaeo authored Feb 12, 2024
2 parents b7f4a83 + 5677c28 commit 7e72b9b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/backend/src/lib/components/FileUpload.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
filePassword: yup
.string()
.required('File password is required')
.min(8, 'Password must at least be 8 characters longs')
.min(8, 'Password must at least be 8 characters long')
.matches(
/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/,
'Password must contain at least 1 lowercase letter, 1 uppercase letter, 1 number, and 1 special character'
Expand Down Expand Up @@ -77,9 +77,10 @@
file_owner_id: $authStore.uid,
file_encryption_hash: filePwdHash,
file_encryption_iv: '',
file_permissions: [],
file_permissions: [$authStore.uid],
updated_at: serverTimestamp(),
created_at: serverTimestamp(),
self_destruct: false,
};
const docRef = doc(colFilesRef, formFileName);
Expand Down

0 comments on commit 7e72b9b

Please sign in to comment.