Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

老用户登录 #705

Closed
happypeter opened this issue Jan 6, 2018 · 8 comments
Closed

老用户登录 #705

happypeter opened this issue Jan 6, 2018 · 8 comments
Assignees

Comments

@happypeter
Copy link
Owner

目前 @BeijiYang 实现的方案,是老用户进来先绑定手机号,然后重置密码。

这个思路的前提是那会儿,微信登录相关的功能还没来得及开发。

但是这样可能造成的现象是:用户绑定手机,重置密码后,回头还有再微信登录,然后用微信绑定手机。

是否可以直接在 MVP 中接入微信登录?这样用户直接微信登录,然后绑定一次即可了。而且新老用户流程也都更类似。

@happypeter
Copy link
Owner Author

@billie66 微信登录需要多久完成?

@billie66
Copy link
Collaborator

billie66 commented Jan 6, 2018

微信登录容易做,现在主要确定业务流程

@happypeter
Copy link
Owner Author

不论新老用户,流程基本一致:

  • 微信扫码登录
  • 新用户填写用户名,密码,手机
  • 老用户也要绑定用户名,然后重置密码,绑定手机

@happypeter
Copy link
Owner Author

手机也可以放一放,暂时跟 https://juejin.im/ 的微信登录流程保持一致即可。

@billie66
Copy link
Collaborator

billie66 commented Jan 9, 2018

基本流程已经跑通,还有些细节需要处理

@happypeter
Copy link
Owner Author

厉害

@billie66
Copy link
Collaborator

billie66 commented Jan 9, 2018

对于微信需要访问的回调页面,优化了一下代码,分离成容器组件和展示组件。另外回调页面用到了表单,表单组件状态存储在本组件 state 中,而不是 store 中,因为状态只是在组件内部会用到

reduxjs/redux#1287

@happypeter
Copy link
Owner Author

项目由我来完全负责了。

微信功能比较多,还是暂时放放。

总体流程是:

  • 用户到达登录页
  • 登录页显示提示:网站更新,用户需要绑定手机后才能继续
  • 到达注册页面,绑定手机并填写新密码
  • 此后用户就可以用新密码登录了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants