简体   繁体   English

如何在 Firebase 身份验证上区分电子邮件验证用户和非验证用户?

[英]How to distinguish email-verified user from non-verified user on Firebase Authentication?

I'm using firebase and found could not distinguish email-verified user from non-verified user on user list in console.我正在使用 firebase 并发现无法在控制台的用户列表中区分电子邮件验证用户和未验证用户。

I know that we can distinguish those users with code-basis like followings but how can I confirm it on console in Firebase Authentication?我知道我们可以通过以下代码区分这些用户,但我如何在 Firebase 身份验证的控制台上确认?

      UserCredential _result =
                        await _auth.signInWithEmailAndPassword(
                      email: _email,
                      password: _pswd,
                    );

                    _result.user!.sendEmailVerification();

By the way, I believe we cannot change DISPLAY NAME in email template for authentication, is this right or actually we can insert certain value instead?顺便说一句,我相信我们不能更改 email 模板中的DISPLAY NAME以进行身份验证,这是正确的还是实际上我们可以插入某些值? Please refer the part circled red in Screen Shot below:请参考以下屏幕截图中红色圈出的部分: 在此处输入图像描述

How can I confirm it on console in Firebase Authentication如何在 Firebase 身份验证中的控制台上确认它

There is no way in the console to identify email-verified users from non-verified users控制台中无法从未经验证的用户中识别出已通过电子邮件验证的用户

I believe we cannot change DISPLAY NAME in email template for authentication, is this right or actually we can insert certain value instead?我相信我们不能更改 email 模板中的 DISPLAY NAME 进行身份验证,这是正确的还是实际上我们可以插入某个值?

No you cannot modify the template for email verification.不,您不能修改用于 email 验证的模板。 More details in this SO answer .SO 答案中的更多详细信息。 But you can build your own email format/template as described here in the doc.但是您可以按照文档中的说明构建自己的 email 格式/模板。

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

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