[PR #7841] [MERGED] feat: support 'forgot password', 'setup password' and 'change password' on mobile #8154

Closed
opened 2026-03-23 23:22:51 +00:00 by mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/7841
Author: @LucasXu0
Created: 4/27/2025
Status: Merged
Merged: 4/28/2025
Merged by: @LucasXu0

Base: mainHead: forgot_password_v4


📝 Commits (10+)

  • 11f7be0 feat: forgot password
  • 5ec56ee fix: warning
  • fad3276 feat: move verify token logic to sign in bloc
  • f11096f feat: set new page page
  • f7231cc feat: integrate reset password api
  • 2e577e6 chore: i18n
  • e1bc9b7 chore: upgrade iOS podfile
  • e3e56ba feat: support setup password and change password on mobile
  • 8c992d3 chore: remove unused files
  • 947f9ac chore: i18n

📊 Changes

30 files changed (+1406 additions, -519 deletions)

View changed files

📝 frontend/appflowy_flutter/ios/Podfile.lock (+30 -30)
📝 frontend/appflowy_flutter/lib/mobile/presentation/bottom_sheet/show_mobile_bottom_sheet.dart (+6 -4)
📝 frontend/appflowy_flutter/lib/mobile/presentation/home/mobile_home_setting_page.dart (+2 -1)
📝 frontend/appflowy_flutter/lib/mobile/presentation/setting/personal_info/edit_username_bottom_sheet.dart (+6 -6)
📝 frontend/appflowy_flutter/lib/mobile/presentation/setting/personal_info/personal_info_setting_group.dart (+119 -14)
📝 frontend/appflowy_flutter/lib/mobile/presentation/setting/user_session_setting_group.dart (+4 -2)
📝 frontend/appflowy_flutter/lib/mobile/presentation/setting/workspace/add_members_screen.dart (+2 -1)
📝 frontend/appflowy_flutter/lib/mobile/presentation/setting/workspace/invite_member_by_link.dart (+2 -1)
📝 frontend/appflowy_flutter/lib/mobile/presentation/setting/workspace/invite_members_screen.dart (+2 -1)
📝 frontend/appflowy_flutter/lib/mobile/presentation/setting/workspace/workspace_setting_group.dart (+19 -21)
📝 frontend/appflowy_flutter/lib/user/application/password/password_http_service.dart (+38 -3)
📝 frontend/appflowy_flutter/lib/user/application/sign_in_bloc.dart (+180 -0)
frontend/appflowy_flutter/lib/user/presentation/screens/sign_in_screen/widgets/continue_with/back_to_login_in_button.dart (+30 -0)
frontend/appflowy_flutter/lib/user/presentation/screens/sign_in_screen/widgets/continue_with/continue_with_button.dart (+27 -0)
📝 frontend/appflowy_flutter/lib/user/presentation/screens/sign_in_screen/widgets/continue_with/continue_with_email_and_password.dart (+1 -0)
📝 frontend/appflowy_flutter/lib/user/presentation/screens/sign_in_screen/widgets/continue_with/continue_with_magic_link_or_passcode_page.dart (+33 -133)
📝 frontend/appflowy_flutter/lib/user/presentation/screens/sign_in_screen/widgets/continue_with/continue_with_password.dart (+3 -1)
📝 frontend/appflowy_flutter/lib/user/presentation/screens/sign_in_screen/widgets/continue_with/continue_with_password_page.dart (+42 -104)
📝 frontend/appflowy_flutter/lib/user/presentation/screens/sign_in_screen/widgets/continue_with/forgot_password_page.dart (+79 -132)
frontend/appflowy_flutter/lib/user/presentation/screens/sign_in_screen/widgets/continue_with/reset_password.dart (+175 -0)

...and 10 more files

📄 Description

Feature Preview

  • forgot password
  • setup password
  • change password

PR Checklist

  • My code adheres to AppFlowy's Conventions
  • I've listed at least one issue that this PR fixes in the description above.
  • I've added a test(s) to validate changes in this PR, or this PR only contains semantic changes.
  • All existing tests are passing.

Summary by Sourcery

Add password management features (forgot, setup, change) to the mobile application and refactor related sign-in UI components.

New Features:

  • Implement 'Forgot Password' flow on mobile, including email submission, token verification, and setting a new password.
  • Add 'Setup Password' and 'Change Password' options to mobile user settings for cloud accounts.
  • Add a login prompt in mobile settings for local users.
  • Add an API service method to verify password reset tokens.

Enhancements:

  • Refactor sign-in related screens using shared UI components for consistency.
  • Adapt existing 'Setup Password' and 'Change Password' dialogs for use within mobile bottom sheets.
  • Proactively fetch workspace invite codes in member management areas.
  • Improve workspace ID handling and reactivity in the member management logic.
  • Hide workspace-related settings on mobile for local-only users.

🔄 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/AppFlowy-IO/AppFlowy/pull/7841 **Author:** [@LucasXu0](https://github.com/LucasXu0) **Created:** 4/27/2025 **Status:** ✅ Merged **Merged:** 4/28/2025 **Merged by:** [@LucasXu0](https://github.com/LucasXu0) **Base:** `main` ← **Head:** `forgot_password_v4` --- ### 📝 Commits (10+) - [`11f7be0`](https://github.com/AppFlowy-IO/AppFlowy/commit/11f7be0c5cdfab057104c93c5f574ab6abe791f1) feat: forgot password - [`5ec56ee`](https://github.com/AppFlowy-IO/AppFlowy/commit/5ec56ee11c8dbd52f160684145c16f8261183940) fix: warning - [`fad3276`](https://github.com/AppFlowy-IO/AppFlowy/commit/fad3276b8d3d36bf0da0cbbf46841a2d85dcbb50) feat: move verify token logic to sign in bloc - [`f11096f`](https://github.com/AppFlowy-IO/AppFlowy/commit/f11096f3b7422c2b873d7df894a89c15df125220) feat: set new page page - [`f7231cc`](https://github.com/AppFlowy-IO/AppFlowy/commit/f7231cc97630b6b85ee8ddff5c7a960fdebf1daf) feat: integrate reset password api - [`2e577e6`](https://github.com/AppFlowy-IO/AppFlowy/commit/2e577e6faf865edf34ba756adb8d001d1af288b7) chore: i18n - [`e1bc9b7`](https://github.com/AppFlowy-IO/AppFlowy/commit/e1bc9b7de091698c0370cc9bf90d6e5cdfef1bbd) chore: upgrade iOS podfile - [`e3e56ba`](https://github.com/AppFlowy-IO/AppFlowy/commit/e3e56ba4ff225dd5947c91416246c79fb2bacca1) feat: support setup password and change password on mobile - [`8c992d3`](https://github.com/AppFlowy-IO/AppFlowy/commit/8c992d3a2a251c8f4fb91cf91f10f402cc48fe3e) chore: remove unused files - [`947f9ac`](https://github.com/AppFlowy-IO/AppFlowy/commit/947f9acd403a5697db24d86b1bf141bbb1fabd68) chore: i18n ### 📊 Changes **30 files changed** (+1406 additions, -519 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_flutter/ios/Podfile.lock` (+30 -30) 📝 `frontend/appflowy_flutter/lib/mobile/presentation/bottom_sheet/show_mobile_bottom_sheet.dart` (+6 -4) 📝 `frontend/appflowy_flutter/lib/mobile/presentation/home/mobile_home_setting_page.dart` (+2 -1) 📝 `frontend/appflowy_flutter/lib/mobile/presentation/setting/personal_info/edit_username_bottom_sheet.dart` (+6 -6) 📝 `frontend/appflowy_flutter/lib/mobile/presentation/setting/personal_info/personal_info_setting_group.dart` (+119 -14) 📝 `frontend/appflowy_flutter/lib/mobile/presentation/setting/user_session_setting_group.dart` (+4 -2) 📝 `frontend/appflowy_flutter/lib/mobile/presentation/setting/workspace/add_members_screen.dart` (+2 -1) 📝 `frontend/appflowy_flutter/lib/mobile/presentation/setting/workspace/invite_member_by_link.dart` (+2 -1) 📝 `frontend/appflowy_flutter/lib/mobile/presentation/setting/workspace/invite_members_screen.dart` (+2 -1) 📝 `frontend/appflowy_flutter/lib/mobile/presentation/setting/workspace/workspace_setting_group.dart` (+19 -21) 📝 `frontend/appflowy_flutter/lib/user/application/password/password_http_service.dart` (+38 -3) 📝 `frontend/appflowy_flutter/lib/user/application/sign_in_bloc.dart` (+180 -0) ➕ `frontend/appflowy_flutter/lib/user/presentation/screens/sign_in_screen/widgets/continue_with/back_to_login_in_button.dart` (+30 -0) ➕ `frontend/appflowy_flutter/lib/user/presentation/screens/sign_in_screen/widgets/continue_with/continue_with_button.dart` (+27 -0) 📝 `frontend/appflowy_flutter/lib/user/presentation/screens/sign_in_screen/widgets/continue_with/continue_with_email_and_password.dart` (+1 -0) 📝 `frontend/appflowy_flutter/lib/user/presentation/screens/sign_in_screen/widgets/continue_with/continue_with_magic_link_or_passcode_page.dart` (+33 -133) 📝 `frontend/appflowy_flutter/lib/user/presentation/screens/sign_in_screen/widgets/continue_with/continue_with_password.dart` (+3 -1) 📝 `frontend/appflowy_flutter/lib/user/presentation/screens/sign_in_screen/widgets/continue_with/continue_with_password_page.dart` (+42 -104) 📝 `frontend/appflowy_flutter/lib/user/presentation/screens/sign_in_screen/widgets/continue_with/forgot_password_page.dart` (+79 -132) ➕ `frontend/appflowy_flutter/lib/user/presentation/screens/sign_in_screen/widgets/continue_with/reset_password.dart` (+175 -0) _...and 10 more files_ </details> ### 📄 Description <!--- Thank you for submitting a pull request to AppFlowy. The team will dedicate their best efforts to reviewing and approving your pull request. If you have any questions about the project or feedback for us, please join our [Discord](https://discord.gg/wdjWUXXhtw). --> <!--- If your pull request adds a new feature, please drag and drop a video into this section to showcase what you've done! If not, you may delete this section. --> ### Feature Preview - [x] forgot password - [x] setup password - [x] change password <!--- List at least one issue here that this PR addresses. If it fixes the issue, please use the [fixes](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests) keyword to close the issue. For example: fixes https://github.com/AppFlowy-IO/AppFlowy/pull/2106 --> --- <!--- Before you mark this PR ready for review, run through this checklist! --> #### PR Checklist - [ ] My code adheres to [AppFlowy's Conventions](https://docs.appflowy.io/docs/documentation/software-contributions/conventions) - [ ] I've listed at least one issue that this PR fixes in the description above. - [ ] I've added a test(s) to validate changes in this PR, or this PR only contains semantic changes. - [ ] All existing tests are passing. ## Summary by Sourcery Add password management features (forgot, setup, change) to the mobile application and refactor related sign-in UI components. New Features: - Implement 'Forgot Password' flow on mobile, including email submission, token verification, and setting a new password. - Add 'Setup Password' and 'Change Password' options to mobile user settings for cloud accounts. - Add a login prompt in mobile settings for local users. - Add an API service method to verify password reset tokens. Enhancements: - Refactor sign-in related screens using shared UI components for consistency. - Adapt existing 'Setup Password' and 'Change Password' dialogs for use within mobile bottom sheets. - Proactively fetch workspace invite codes in member management areas. - Improve workspace ID handling and reactivity in the member management logic. - Hide workspace-related settings on mobile for local-only users. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirror 2026-03-23 23:22:51 +00: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
AppFlowy-IO/AppFlowy#8154
No description provided.