[PR #545] [MERGED] feat: add DISABLE_ANONYMOUS_USER_CREATE_EMAIL which only allow logi… #615

Closed
opened 2026-02-26 21:32:03 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dreamhunter2333/cloudflare_temp_email/pull/545
Author: @dreamhunter2333
Created: 1/4/2025
Status: Merged
Merged: 1/5/2025
Merged by: @dreamhunter2333

Base: mainHead: feature/dev


📝 Commits (1)

  • d0c1a74 feat: add DISABLE_ANONYMOUS_USER_CREATE_EMAIL which only allow login user create email address

📊 Changes

11 files changed (+28 additions, -3 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 frontend/src/api/index.js (+1 -0)
📝 frontend/src/store/index.js (+1 -0)
📝 frontend/src/views/common/Login.vue (+11 -3)
📝 vitepress-docs/docs/en/cli.md (+2 -0)
📝 vitepress-docs/docs/zh/guide/cli/worker.md (+2 -0)
📝 worker/src/admin_api/worker_config.ts (+1 -0)
📝 worker/src/commom_api.ts (+1 -0)
📝 worker/src/mails_api/index.ts (+5 -0)
📝 worker/src/types.d.ts (+1 -0)
📝 worker/wrangler.toml.template (+2 -0)

📄 Description

User description

…n user create email address

#540


PR Type

Enhancement, Documentation


Description

  • Add DISABLE_ANONYMOUS_USER_CREATE_EMAIL configuration option

  • Update frontend logic to respect new configuration

  • Update API endpoints to enforce new configuration

  • Document new configuration in CLI documentation


Changes walkthrough 📝

Relevant files
Enhancement
8 files
Login.vue
Add logic to conditionally show email creation tab             
+11/-3   
worker_config.ts
Add `DISABLE_ANONYMOUS_USER_CREATE_EMAIL` to worker config
+1/-0     
commom_api.ts
Include `disableAnonymousUserCreateEmail` in open API settings
+1/-0     
index.ts
Enforce `DISABLE_ANONYMOUS_USER_CREATE_EMAIL` in new address endpoint
+5/-0     
types.d.ts
Add `DISABLE_ANONYMOUS_USER_CREATE_EMAIL` to type definitions
+1/-0     
index.js
Fetch `disableAnonymousUserCreateEmail` setting from API 
+1/-0     
index.js
Add `disableAnonymousUserCreateEmail` to global state       
+1/-0     
wrangler.toml.template
Add `DISABLE_ANONYMOUS_USER_CREATE_EMAIL` to wrangler template
+2/-0     
Documentation
3 files
CHANGELOG.md
Document new feature in changelog                                               
+1/-0     
cli.md
Document `DISABLE_ANONYMOUS_USER_CREATE_EMAIL` in English CLI docs
+2/-0     
worker.md
Document `DISABLE_ANONYMOUS_USER_CREATE_EMAIL` in Chinese CLI docs
+2/-0     

💡 PR-Agent usage: Comment /help "your question" on any pull request to receive relevant information


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/dreamhunter2333/cloudflare_temp_email/pull/545 **Author:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Created:** 1/4/2025 **Status:** ✅ Merged **Merged:** 1/5/2025 **Merged by:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Base:** `main` ← **Head:** `feature/dev` --- ### 📝 Commits (1) - [`d0c1a74`](https://github.com/dreamhunter2333/cloudflare_temp_email/commit/d0c1a747705e2331b6cf208967951d13f0e350c6) feat: add `DISABLE_ANONYMOUS_USER_CREATE_EMAIL` which only allow login user create email address ### 📊 Changes **11 files changed** (+28 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `frontend/src/api/index.js` (+1 -0) 📝 `frontend/src/store/index.js` (+1 -0) 📝 `frontend/src/views/common/Login.vue` (+11 -3) 📝 `vitepress-docs/docs/en/cli.md` (+2 -0) 📝 `vitepress-docs/docs/zh/guide/cli/worker.md` (+2 -0) 📝 `worker/src/admin_api/worker_config.ts` (+1 -0) 📝 `worker/src/commom_api.ts` (+1 -0) 📝 `worker/src/mails_api/index.ts` (+5 -0) 📝 `worker/src/types.d.ts` (+1 -0) 📝 `worker/wrangler.toml.template` (+2 -0) </details> ### 📄 Description ### **User description** …n user create email address #540 ___ ### **PR Type** Enhancement, Documentation ___ ### **Description** - Add `DISABLE_ANONYMOUS_USER_CREATE_EMAIL` configuration option - Update frontend logic to respect new configuration - Update API endpoints to enforce new configuration - Document new configuration in CLI documentation ___ ### **Changes walkthrough** 📝 <table><thead><tr><th></th><th align="left">Relevant files</th></tr></thead><tbody><tr><td><strong>Enhancement</strong></td><td><details><summary>8 files</summary><table> <tr> <td><strong>Login.vue</strong><dd><code>Add logic to conditionally show email creation tab</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/545/files#diff-0ee87c9358b6449242c09bd98ae1ad3a88fb9948c0fcc64c4db3d43e5ec83b4e">+11/-3</a>&nbsp; &nbsp; </td> </tr> <tr> <td><strong>worker_config.ts</strong><dd><code>Add `DISABLE_ANONYMOUS_USER_CREATE_EMAIL` to worker config</code></dd></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/545/files#diff-49df0a54d190cb8ea3788432fae88000683da8e61a5c4d0d184c8b7f0015a0ae">+1/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td><strong>commom_api.ts</strong><dd><code>Include `disableAnonymousUserCreateEmail` in open API settings</code></dd></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/545/files#diff-fe2dec25bee7d722fe8aa25b616c21bd12b8123e26469f5cac11c9164be783c3">+1/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td><strong>index.ts</strong><dd><code>Enforce `DISABLE_ANONYMOUS_USER_CREATE_EMAIL` in new address endpoint</code></dd></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/545/files#diff-83710df6a60b2b512e134f32ad9890ab9a255040f6019f0d5603f72f4561cea4">+5/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td><strong>types.d.ts</strong><dd><code>Add `DISABLE_ANONYMOUS_USER_CREATE_EMAIL` to type definitions</code></dd></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/545/files#diff-583fb024d5c9d1efac71bbea788d8379e5e8fc2f0bb1696a9863c6f6cac54bee">+1/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td><strong>index.js</strong><dd><code>Fetch `disableAnonymousUserCreateEmail` setting from API</code>&nbsp; </dd></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/545/files#diff-80f7e17c8e1f299b7316ce792286ebcaab67ed3afc050e3c5019ed33ab61b34b">+1/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td><strong>index.js</strong><dd><code>Add `disableAnonymousUserCreateEmail` to global state</code>&nbsp; &nbsp; &nbsp; &nbsp; </dd></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/545/files#diff-0c36ce15651c51795b411359e8caaf5af7960c82674b4f2015b8dd5f480fde2c">+1/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td><strong>wrangler.toml.template</strong><dd><code>Add `DISABLE_ANONYMOUS_USER_CREATE_EMAIL` to wrangler template</code></dd></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/545/files#diff-743273da72481b71fbeb1dddfd294be9249554eef65691dfc9bcfa9f0fd971fb">+2/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> </table></details></td></tr><tr><td><strong>Documentation</strong></td><td><details><summary>3 files</summary><table> <tr> <td><strong>CHANGELOG.md</strong><dd><code>Document new feature in changelog</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/545/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed">+1/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td><strong>cli.md</strong><dd><code>Document `DISABLE_ANONYMOUS_USER_CREATE_EMAIL` in English CLI docs</code></dd></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/545/files#diff-3f8f72a691fa19c8581621e91cf67ad28855af7a57e58513f6563cf4c8886e5f">+2/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td><strong>worker.md</strong><dd><code>Document `DISABLE_ANONYMOUS_USER_CREATE_EMAIL` in Chinese CLI docs</code></dd></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/545/files#diff-f760a2ec5dad4b6bda0bd4a9325274567778add8cb984e73650dbaaf680c9178">+2/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> </table></details></td></tr></tr></tbody></table> ___ > 💡 **PR-Agent usage**: Comment `/help "your question"` on any pull request to receive relevant information --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 21:32:03 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cloudflare_temp_email#615
No description provided.