[PR #606] [MERGED] feat: support auto login with url query parameter #657

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

📋 Pull Request Information

Original PR: https://github.com/dreamhunter2333/cloudflare_temp_email/pull/606
Author: @dreamhunter2333
Created: 3/15/2025
Status: Merged
Merged: 3/16/2025
Merged by: @dreamhunter2333

Base: mainHead: feature/dev


📝 Commits (1)

  • 8f7f066 feat: support auto login with url query parameter

📊 Changes

6 files changed (+42 additions, -17 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 frontend/src/main.js (+2 -11)
📝 frontend/src/router/index.js (+19 -1)
📝 frontend/src/store/index.js (+1 -1)
📝 frontend/src/views/index/AddressBar.vue (+16 -1)
📝 frontend/src/views/index/LocalAddress.vue (+3 -3)

📄 Description

User description

#605


PR Type

Enhancement


Description

  • Support auto login with URL query parameter.

  • Add new localization strings for auto login link.

  • Update router to handle JWT query parameter.

  • Modify UI components to display auto login link.


Changes walkthrough 📝

Relevant files
Enhancement
AddressBar.vue
Add auto login link and localization strings                         

frontend/src/views/index/AddressBar.vue

  • Added localization strings for auto login link.
  • Implemented function to generate URL with JWT.
  • Updated modal to display auto login link.
  • +16/-1   
    LocalAddress.vue
    Update localization strings and tab names                               

    frontend/src/views/index/LocalAddress.vue

  • Updated localization strings for binding address.
  • Modified tab name to reflect new binding options.
  • +3/-3     
    main.js
    Clean up router locale setting                                                     

    frontend/src/main.js

    • Removed redundant router locale setting.
    +2/-11   
    index.js
    Handle JWT in router and update locale setting                     

    frontend/src/router/index.js

  • Added JWT handling in router beforeEach hook.
  • Updated locale setting logic.
  • +19/-1   
    index.js
    Change default user tab setting                                                   

    frontend/src/store/index.js

    • Updated default user tab setting.
    +1/-1     
    Documentation
    CHANGELOG.md
    Update changelog with auto login feature                                 

    CHANGELOG.md

    • Documented new feature for auto login with URL JWT parameter.
    +1/-0     

    Need help?
  • Type /help how to ... in the comments thread for any questions about PR-Agent usage.
  • Check out the documentation for more 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/606 **Author:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Created:** 3/15/2025 **Status:** ✅ Merged **Merged:** 3/16/2025 **Merged by:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Base:** `main` ← **Head:** `feature/dev` --- ### 📝 Commits (1) - [`8f7f066`](https://github.com/dreamhunter2333/cloudflare_temp_email/commit/8f7f066e0d088f7a78b27cea06644a59225e9073) feat: support auto login with url query parameter ### 📊 Changes **6 files changed** (+42 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `frontend/src/main.js` (+2 -11) 📝 `frontend/src/router/index.js` (+19 -1) 📝 `frontend/src/store/index.js` (+1 -1) 📝 `frontend/src/views/index/AddressBar.vue` (+16 -1) 📝 `frontend/src/views/index/LocalAddress.vue` (+3 -3) </details> ### 📄 Description ### **User description** #605 ___ ### **PR Type** Enhancement ___ ### **Description** - Support auto login with URL query parameter. - Add new localization strings for auto login link. - Update router to handle JWT query parameter. - Modify UI components to display auto login link. ___ ### **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>AddressBar.vue</strong><dd><code>Add auto login link and localization strings</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> frontend/src/views/index/AddressBar.vue <li>Added localization strings for auto login link.<br> <li> Implemented function to generate URL with JWT.<br> <li> Updated modal to display auto login link. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/606/files#diff-dec14b20ddc8434fd20bd566ff79501b9b2ea8e44343e0135f694abc61342902">+16/-1</a>&nbsp; &nbsp; </td> </tr> <tr> <td> <details> <summary><strong>LocalAddress.vue</strong><dd><code>Update localization strings and tab names</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> frontend/src/views/index/LocalAddress.vue <li>Updated localization strings for binding address.<br> <li> Modified tab name to reflect new binding options. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/606/files#diff-f1fe6deefc61274d0076c80a7a87c0ad908af59123e02b9df80b5d458d88af61">+3/-3</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td> <details> <summary><strong>main.js</strong><dd><code>Clean up router locale setting</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; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> frontend/src/main.js - Removed redundant router locale setting. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/606/files#diff-2f46f8a9c2b03069ecfe187fdaec0f865901d86ba8426dda8b437788b10e8ca7">+2/-11</a>&nbsp; &nbsp; </td> </tr> <tr> <td> <details> <summary><strong>index.js</strong><dd><code>Handle JWT in router and update locale setting</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> frontend/src/router/index.js <li>Added JWT handling in router beforeEach hook.<br> <li> Updated locale setting logic. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/606/files#diff-2766750fe4e47e725d24427092ed92a78eca3bae6c3583646f0ce4228ae872f8">+19/-1</a>&nbsp; &nbsp; </td> </tr> <tr> <td> <details> <summary><strong>index.js</strong><dd><code>Change default user tab setting</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; &nbsp; &nbsp; </dd></summary> <hr> frontend/src/store/index.js - Updated default user tab setting. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/606/files#diff-0c36ce15651c51795b411359e8caaf5af7960c82674b4f2015b8dd5f480fde2c">+1/-1</a>&nbsp; &nbsp; &nbsp; </td> </tr> </table></td></tr><tr><td><strong>Documentation</strong></td><td><table> <tr> <td> <details> <summary><strong>CHANGELOG.md</strong><dd><code>Update changelog with auto login feature</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> CHANGELOG.md - Documented new feature for auto login with URL JWT parameter. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/606/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed">+1/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> </table></td></tr></tr></tbody></table> ___ > <details> <summary> Need help?</summary><li>Type <code>/help how to ...</code> in the comments thread for any questions about PR-Agent usage.</li><li>Check out the <a href="https://qodo-merge-docs.qodo.ai/usage-guide/">documentation</a> for more information.</li></details> --- <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:15 +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#657
    No description provided.