mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-06-07 08:30:51 +08:00
* fix: respect user mail deletion toggle in user center Hide user mailbox delete actions and block /user_api/mails deletion when ENABLE_USER_DELETE_EMAIL is disabled. Add an e2e regression test and changelog entries for issue #978. * test: hash user password in mail deletion e2e Use the same SHA-256 pre-hashed password format as the frontend for the user register/login flow in the mail deletion regression test.
35 lines
952 B
Plaintext
35 lines
952 B
Plaintext
name = "cloudflare_temp_email_env_off"
|
|
main = "src/worker.ts"
|
|
compatibility_date = "2025-04-01"
|
|
compatibility_flags = [ "nodejs_compat" ]
|
|
keep_vars = true
|
|
|
|
[vars]
|
|
PREFIX = "tmp"
|
|
DEFAULT_DOMAINS = ["test.example.com"]
|
|
DOMAINS = ["test.example.com"]
|
|
ENABLE_CREATE_ADDRESS_SUBDOMAIN_MATCH = false
|
|
JWT_SECRET = "e2e-test-secret-key-env-off"
|
|
BLACK_LIST = ""
|
|
ENABLE_USER_CREATE_EMAIL = true
|
|
ENABLE_USER_DELETE_EMAIL = false
|
|
ENABLE_AUTO_REPLY = true
|
|
DEFAULT_SEND_BALANCE = 10
|
|
ENABLE_ADDRESS_PASSWORD = true
|
|
DISABLE_ADMIN_PASSWORD_CHECK = true
|
|
ADMIN_PASSWORDS = '["e2e-admin-pass"]'
|
|
ENABLE_WEBHOOK = true
|
|
E2E_TEST_MODE = true
|
|
SMTP_CONFIG = """
|
|
{"test.example.com":{"host":"mailpit","port":1025,"secure":false}}
|
|
"""
|
|
|
|
[[kv_namespaces]]
|
|
binding = "KV"
|
|
id = "e2e-test-kv-env-off-00000000-0000-0000-0000-000000000000"
|
|
|
|
[[d1_databases]]
|
|
binding = "DB"
|
|
database_name = "e2e-temp-email-env-off"
|
|
database_id = "e2e-test-db-env-off-00000000-0000-0000-0000-000000000000"
|