且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Firebase电子邮件验证无法正常工作,无需验证用户是否能够登录

更新时间:2023-12-01 15:52:34

您需要在Firebase数据库中检查已通过电子邮件验证字段,然后如果BOOL值为TRUE,则将其放入应用程序中。单击电子邮件中的链接后,布尔值将自动变为TRUE。因此,与其像您那样做,不如查询该用户的用户表,并检查布尔值是否已通过验证,如果未通过验证,则不要让他们进入。祝您好运,祝您有美好的一天

you need to check on the firebase databasae for the field that says "is email verified" and then if that BOOL value is TRUE, then let them in the app. the bool value will turn to TRUE automatically after they click the link in their email. so instead of doing it like your'e doing, query the user table for that user and check the boolean value for whether they are verified, if they are not, then don't let them in. good luck and have a fabulous day