简体   繁体   English

如何防止 firebase auth 更改用户提供程序 - flutter firebase

[英]How to prevent from firebase auth to change user provider - flutter firebase

I'm creating a flutter app with firebase.我正在使用 firebase 创建一个 flutter 应用程序。 I've added as one of my auth method, google sign in. But if I register with the same email with an email and password, and then sign in via google with the same email, firebase will change the provider of the user from email and password to google and when you'll try to login with email and password, the older password will not be vaild any more and you'll have to go through a password reset process. I've added as one of my auth method, google sign in. But if I register with the same email with an email and password, and then sign in via google with the same email, firebase will change the provider of the user from email和谷歌密码,当您尝试使用 email 和密码登录时,旧密码将不再有效,您必须通过密码重置过程访问 go。 How can I prevent firebase from changing the user provider??如何防止 firebase 更改用户提供者? Or how can check if this email is already registed in my firebase project (with the same email of course)???或者如何检查这个 email 是否已经在我的 firebase 项目中注册(当然是相同的 email)???

Under authentication -> sign in methods在身份验证下-> 登录方法
Activate: One account per email address.激活:每个 email 地址一个帐户。

在此处输入图像描述

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM