feat: add login
This commit is contained in:
7
packages/bolt/app/lib/.server/login.ts
Normal file
7
packages/bolt/app/lib/.server/login.ts
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user