[PR #386] [MERGED] feat: add DISABLE_ADMIN_PASSWORD_CHECK #555

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

📋 Pull Request Information

Original PR: https://github.com/dreamhunter2333/cloudflare_temp_email/pull/386
Author: @dreamhunter2333
Created: 8/10/2024
Status: Merged
Merged: 8/10/2024
Merged by: @dreamhunter2333

Base: mainHead: feature/dev


📝 Commits (1)

  • 4ffe582 feat: add DISABLE_ADMIN_PASSWORD_CHECK

📊 Changes

7 files changed (+20 additions, -0 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 vitepress-docs/docs/en/cli.md (+2 -0)
📝 vitepress-docs/docs/zh/guide/cli/worker.md (+2 -0)
📝 vitepress-docs/docs/zh/guide/feature/admin.md (+4 -0)
📝 worker/src/types.d.ts (+1 -0)
📝 worker/src/worker.ts (+8 -0)
📝 worker/wrangler.toml.template (+2 -0)

📄 Description

User description

#374


PR Type

Enhancement, Documentation


Description

  • Added DISABLE_ADMIN_PASSWORD_CHECK to the Bindings type definition.
  • Implemented DISABLE_ADMIN_PASSWORD_CHECK in the admin authentication middleware to allow bypassing admin password checks.
  • Documented the DISABLE_ADMIN_PASSWORD_CHECK configuration option in both English and Chinese CLI documentation.
  • Updated the wrangler configuration template to include the DISABLE_ADMIN_PASSWORD_CHECK option.

Changes walkthrough 📝

Relevant files
Enhancement
types.d.ts
Add `DISABLE_ADMIN_PASSWORD_CHECK` to Bindings type           

worker/src/types.d.ts

  • Added DISABLE_ADMIN_PASSWORD_CHECK to Bindings type.
+1/-0     
worker.ts
Implement `DISABLE_ADMIN_PASSWORD_CHECK` in admin middleware

worker/src/worker.ts

  • Added check for DISABLE_ADMIN_PASSWORD_CHECK in admin authentication
    middleware.
  • +8/-0     
    wrangler.toml.template
    Add `DISABLE_ADMIN_PASSWORD_CHECK` option in wrangler template

    worker/wrangler.toml.template

    • Added DISABLE_ADMIN_PASSWORD_CHECK configuration option.
    +2/-0     
    Documentation
    cli.md
    Document `DISABLE_ADMIN_PASSWORD_CHECK` option in CLI documentation

    vitepress-docs/docs/en/cli.md

    • Documented DISABLE_ADMIN_PASSWORD_CHECK configuration option.
    +2/-0     
    worker.md
    Document `DISABLE_ADMIN_PASSWORD_CHECK` option in Chinese CLI guide

    vitepress-docs/docs/zh/guide/cli/worker.md

  • Documented DISABLE_ADMIN_PASSWORD_CHECK configuration option in
    Chinese.
  • +3/-0     
    admin.md
    Add `DISABLE_ADMIN_PASSWORD_CHECK` section in admin feature guide

    vitepress-docs/docs/zh/guide/feature/admin.md

  • Added section about DISABLE_ADMIN_PASSWORD_CHECK in admin feature
    guide.
  • +4/-0     

    💡 PR-Agent usage:
    Comment /help on the PR to get a list of all available PR-Agent tools and their descriptions


    🔄 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/386 **Author:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Created:** 8/10/2024 **Status:** ✅ Merged **Merged:** 8/10/2024 **Merged by:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Base:** `main` ← **Head:** `feature/dev` --- ### 📝 Commits (1) - [`4ffe582`](https://github.com/dreamhunter2333/cloudflare_temp_email/commit/4ffe582902471517acee86cac61130c6d81bc60b) feat: add DISABLE_ADMIN_PASSWORD_CHECK ### 📊 Changes **7 files changed** (+20 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `vitepress-docs/docs/en/cli.md` (+2 -0) 📝 `vitepress-docs/docs/zh/guide/cli/worker.md` (+2 -0) 📝 `vitepress-docs/docs/zh/guide/feature/admin.md` (+4 -0) 📝 `worker/src/types.d.ts` (+1 -0) 📝 `worker/src/worker.ts` (+8 -0) 📝 `worker/wrangler.toml.template` (+2 -0) </details> ### 📄 Description ### **User description** #374 ___ ### **PR Type** Enhancement, Documentation ___ ### **Description** - Added `DISABLE_ADMIN_PASSWORD_CHECK` to the `Bindings` type definition. - Implemented `DISABLE_ADMIN_PASSWORD_CHECK` in the admin authentication middleware to allow bypassing admin password checks. - Documented the `DISABLE_ADMIN_PASSWORD_CHECK` configuration option in both English and Chinese CLI documentation. - Updated the wrangler configuration template to include the `DISABLE_ADMIN_PASSWORD_CHECK` option. ___ ### **Changes walkthrough** 📝 <table><thead><tr><th></th><th align="left">Relevant files</th></tr></thead><tbody><tr><td><strong>Enhancement</strong></td><td><table> <tr> <td> <details> <summary><strong>types.d.ts</strong><dd><code>Add `DISABLE_ADMIN_PASSWORD_CHECK` to Bindings type</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> worker/src/types.d.ts - Added `DISABLE_ADMIN_PASSWORD_CHECK` to `Bindings` type. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/386/files#diff-583fb024d5c9d1efac71bbea788d8379e5e8fc2f0bb1696a9863c6f6cac54bee">+1/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td> <details> <summary><strong>worker.ts</strong><dd><code>Implement `DISABLE_ADMIN_PASSWORD_CHECK` in admin middleware</code></dd></summary> <hr> worker/src/worker.ts <li>Added check for <code>DISABLE_ADMIN_PASSWORD_CHECK</code> in admin authentication <br>middleware.<br> </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/386/files#diff-c007030a206d7e4e2a4879ba673551e7633ad914b67cfac204096edced3f80a2">+8/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td> <details> <summary><strong>wrangler.toml.template</strong><dd><code>Add `DISABLE_ADMIN_PASSWORD_CHECK` option in wrangler template</code></dd></summary> <hr> worker/wrangler.toml.template - Added `DISABLE_ADMIN_PASSWORD_CHECK` configuration option. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/386/files#diff-743273da72481b71fbeb1dddfd294be9249554eef65691dfc9bcfa9f0fd971fb">+2/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> </table></td></tr><tr><td><strong>Documentation</strong></td><td><table> <tr> <td> <details> <summary><strong>cli.md</strong><dd><code>Document `DISABLE_ADMIN_PASSWORD_CHECK` option in CLI documentation</code></dd></summary> <hr> vitepress-docs/docs/en/cli.md - Documented `DISABLE_ADMIN_PASSWORD_CHECK` configuration option. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/386/files#diff-3f8f72a691fa19c8581621e91cf67ad28855af7a57e58513f6563cf4c8886e5f">+2/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td> <details> <summary><strong>worker.md</strong><dd><code>Document `DISABLE_ADMIN_PASSWORD_CHECK` option in Chinese CLI guide</code></dd></summary> <hr> vitepress-docs/docs/zh/guide/cli/worker.md <li>Documented <code>DISABLE_ADMIN_PASSWORD_CHECK</code> configuration option in <br>Chinese.<br> </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/386/files#diff-f760a2ec5dad4b6bda0bd4a9325274567778add8cb984e73650dbaaf680c9178">+3/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td> <details> <summary><strong>admin.md</strong><dd><code>Add `DISABLE_ADMIN_PASSWORD_CHECK` section in admin feature guide</code></dd></summary> <hr> vitepress-docs/docs/zh/guide/feature/admin.md <li>Added section about <code>DISABLE_ADMIN_PASSWORD_CHECK</code> in admin feature <br>guide.<br> </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/386/files#diff-99dbdc1c9699e92d8f1ece5ea806d153f7fd9337dc5fe5cf17615640cbc90b38">+4/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> </table></td></tr></tr></tbody></table> ___ > 💡 **PR-Agent usage**: >Comment `/help` on the PR to get a list of all available PR-Agent tools and their descriptions --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
    kerem 2026-02-26 21:31:47 +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#555
    No description provided.