File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ export function decodeBasicAuth(encodedString: string): {
23
23
// return null if auth passes or is not required,
24
24
// return auth page if auth is required
25
25
// throw WorkerError if auth failed
26
+ // TODO: only allow hashed passwd
26
27
export function verifyAuth ( request : Request , env : Env ) : Response | null {
27
28
// pass auth if 'BASIC_AUTH' is not present
28
29
const basic_auth = env . BASIC_AUTH as { [ username : string ] : string }
Original file line number Diff line number Diff line change @@ -6,10 +6,12 @@ export type PasteMetadata = {
6
6
7
7
lastModifiedAtUnix : number
8
8
createdAtUnix : number
9
+ // TODO: allow admin to upload permanent paste
9
10
willExpireAtUnix : number
10
11
11
12
accessCounter : number // a counter representing how frequent it is accessed, to administration usage
12
- sizeBytes ?: number ,
13
+ sizeBytes ?: number
14
+ // TODO: add filename length check
13
15
filename ?: string
14
16
}
15
17
You can’t perform that action at this time.
0 commit comments