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

Cannot use 'in' operator to search for 'uid' in null #25

Open
ihoey opened this issue Jan 6, 2018 · 5 comments
Open

Cannot use 'in' operator to search for 'uid' in null #25

ihoey opened this issue Jan 6, 2018 · 5 comments
Assignees
Labels

Comments

@ihoey
Copy link

ihoey commented Jan 6, 2018

问题描述 Issue Description

无法登录野火🔥

怎么了 What

[讲讲问题是什么。]
[Tell us about the issue.]

Uncaught (in promise) TypeError: Cannot use 'in' operator to search for 'uid' in null
    at a.j [as $set] (vue:6)
    at wildfire.min.js:1
    at <anonymous>

如何重现 Reproduce

可以到我的博客看一下
[重新这个问题的步骤。]
[The steps to reproduce this issue. ]

其他的话 Other Comment

[其他要说的话请写在这里。]
[Add anything else here.]

@ihoey
Copy link
Author

ihoey commented Jan 6, 2018

clear site data 之后就好了

@ihoey ihoey closed this as completed Jan 6, 2018
@cheng-kang
Copy link
Owner

@ihoey 感谢反馈。

这个问题的来源是注册用户的时候,可能由于网络问题或者其他原因,虽然在【身份认证】模块注册成功了,但是用户个人信息数据没有被初始化到【数据库】模块中。

我们正在思考如何解决这个问题。目前的方案是推出一个站长辅助功能,让站长手动帮出现这样错误的用户初始化个人信息数据。这个方案的顾虑是,过程有些繁杂。

有新的进展我们会再次告知的。

@ihoey
Copy link
Author

ihoey commented Jan 6, 2018

@cheng-kang 嗯嗯,刚刚发现是用之前注册的账号登录就会出现这个问题,而且不能重新注册
去「身份认证」删掉用户重新注册就不会出现了

@cheng-kang cheng-kang added this to To Do in wildfire v0.5 Jan 7, 2018
@cheng-kang
Copy link
Owner

解决方案:在 onAuthStateChange 中 catch error,重新初始化 user 信息

@cheng-kang
Copy link
Owner

#43 (comment)

添加特殊安全规则,注册之前检查安全规则是否设置好。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
wildfire v0.5
  
To Do
Development

No branches or pull requests

3 participants