GoogleCodeArchives / hotot

Automatically exported from code.google.com/p/hotot
0 stars 0 forks source link

多帐号登录时的问题 #398

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.建立两个帐号A和B
2.在帐号A中点击登录按钮,立刻切换到帐号B
3.

What is the expected output? What do you see instead?
个人信息是帐号A的,但timeline、mention之类的全是帐号B的

Please use labels and text to provide additional information.

Original issue reported on code.google.com by xnrefor...@gmail.com on 25 Jun 2011 at 8:08

GoogleCodeExporter commented 9 years ago
嗯..这个时候验证已经开始了。

应该abort掉这个xhr终止请求过程才好。

或者,正确的做法是禁用掉welcome页面的ui组件,直到请求超��
�或者成功

Original comment by 5h3l...@gmail.com on 25 Jun 2011 at 11:38

GoogleCodeExporter commented 9 years ago
我觉得是不应该在点击切换帐号时就通过conf.apply_prefs设定当�
��的配置。
只有在点击了登录时才能确定哪个帐号是当前的。

我尝试在ui.welcome.js中添加了两行代码,一行是在ui.Welcome.btn_o
auth_sign_in.on_clicked中var conf_name = 
conf.current_name,另一行是在lib.twitterapi.verify的回调函数中使用
conf.apply_prefs(conf_name),就没有这个问题了。

另外还有个问题就是点击了帐号A的登录后,再立刻去点击帐�
��B的登录,帐号A的登录过程没有被中止,导致最后界面上同�
��出现两个帐号的timeline/mention等

Original comment by xnrefor...@gmail.com on 25 Jun 2011 at 12:23

GoogleCodeExporter commented 9 years ago

Original comment by 5h3l...@gmail.com on 6 Oct 2011 at 11:48