本文介绍了你如何搜索/访问用户数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我想提醒正在注册的用户,他们选择的电子邮件地址已经在我们的用户库中;我怎么能比较他们(期望)的电子邮件给我的用户列表中的用户之前(while)他们注册?在哪里存储用户,以及如何访问数据节点?

解决方案

您应该有一个包含用户的用户节点其他有关它们的信息。

登录凭据存储在Firebase的内部,因此您无法直接访问它们。有一个用户节点允许访问关于用户的其他数据(并且可以仔细检查是否已经在使用电子邮件地址)。

 用户
uid_00001
名称:Frank
邮箱:[email protected]
fav_movie:飞机
uid_00002
名称:加藤
邮箱:[email protected]
fav_movie:粉红豹

使用上述结构,您可以简单地查询电子邮件地址,如果有匹配,不允许他们使用它。



这是非常常见的做法,并且有很多关于在Firebase网站上处理用户的信息。



检出将用户数据存储在此链接中




I want to alert users who are registering that their choice of email address is already in our userbase; how can I compare their (desired) email to the users in my user list before (while) they register? Where exactly are the users stored and how can I access taht datanode?

解决方案

You should have a users node that contains your users and other info about them.

Login credentials are stored internally in firebase so you don't have direct access so them. Having a users node allows access to other data about the user (and can double check to see if an email address is already in use).

users
  uid_00001
    name: "Frank"
    email: "[email protected]"
    fav_movie: "Airplane"
  uid_00002
    name: "Kato"
    email: "[email protected]"
    fav_movie: "Pink Panther"

Using the above structure, you can simply query for the email address and if there's a match don't allow them to use it.

This is very common practice and there's a lot of information about handling users on the Firebase website.

Check out Storing User Data in this link

https://www.firebase.com/docs/ios/guide/user-auth.html

这篇关于你如何搜索/访问用户数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-07 02:57