feat: add login

This commit is contained in:
Dominic Elm
2024-07-11 21:25:19 +02:00
parent 6927c07451
commit d2b36e8fb2
11 changed files with 196 additions and 9 deletions

View File

@@ -0,0 +1,7 @@
import { env } from 'node:process';
export function verifyPassword(password: string, cloudflareEnv: Env) {
const loginPassword = env.LOGIN_PASSWORD || cloudflareEnv.LOGIN_PASSWORD;
return password === loginPassword;
}