Firebase允许我的应用中带有@符号注册的任何内容(Firebase is allowing anything with an @ symbol register in my app)

编程入门 行业动态 更新时间:2024-10-28 00:21:17
Firebase允许我的应用中带有@符号注册的任何内容(Firebase is allowing anything with an @ symbol register in my app)

我正在为一个在线课程构建一个应用程序,但我喜欢采用他们的框架,并更好地添加到我的作品集中,添加功能。 他们正在教这个部分的Firebase并构建一个聊天应用程序...当我看到他们的视频时,他们使用“1@2.com”作为他们的电子邮件,这看起来不像一个真正的电子邮件,所以我在我的,并且我注意到,Firebase允许我使用随机分类的任何内容,因此显然不是真正的电子邮件“ajflkdsajffadjslfj123412djflakjdf@hotmail.com”进行注册。 我浏览了firebase文档,没有看到任何说明如何检查电子邮件是否实际上是电子邮件的内容。

I'm building an app for an online course, but I like to take their skeleton and make it better to add to my portfolio, adding features. They're teaching Firebase in this section and building a chat app... When I see their video they use "1@2.com" as their email, which doesn't seem like a real email, so I tried it in mine, and I noticed that Firebase is allowing me to use a random assortment of whatever, so an obviously not real email "ajflkdsajffadjslfj123412djflakjdf@hotmail.com" to register. I've skimmed through the firebase docs and didn't see anything that says how to check if the email is actually an email.

最满意答案

从技术上讲,这可能是一封有效的邮件,因此Firebase无法检查每封邮件是否有效。 你可以做的是向用户发送电子邮件验证,如果他们验证了他们的帐户,那么他们可以使用你的应用程序。

Firebase Auth文档中的电子邮件验证可以在此处找到。

Technically that could be a valid mail, so there is nothing Firebase can do to check every mails if they are valid or not. What you could do though is to send an email verification to the user and if they verify their account then they can use your application.

Email Verification in Firebase Auth documentation for that can be found here.

更多推荐

Firebase,com,电子,邮件,电脑培训,计算机培训,IT培训"/> <meta name="descriptio

本文发布于:2023-08-05 21:04:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1439478.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:符号   内容   Firebase   allowing   app

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!