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

PassportBinder 控件 #16

Open
Justineo opened this issue Apr 22, 2014 · 2 comments
Open

PassportBinder 控件 #16

Justineo opened this issue Apr 22, 2014 · 2 comments

Comments

@Justineo
Copy link
Member

企业百科目前实现的账户绑定有些问题,需考虑按贴吧推广之前用过的方式来做。

@otakustay
Copy link
Member

从名字上看,感觉更应该做成一个可复用的Action,然后打成一个小的package发布,其它项目引入这个package配个URL就能用,毕竟业务关联性很大,又似乎有数据的交互,控件这类纯展现的组件不太适应?

@Justineo
Copy link
Member Author

之前锦囊里面是这样的,继承 InputControl,最后只输出一个用户名。然后在中间验证的环节里面会抛些事件出来,给后端去验证 session 什么的。这个东西不保证最后验证的正确性,只是封装了「点击以后弹出登录窗,登录完毕以后 getValue() 可以拿到账户名」这样的交互操作。正确性在 Action 里面保证的。

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

No branches or pull requests

2 participants