Firebase 身份验证电子邮件自定义 [英] Firebase authentication email customisation

查看:34
本文介绍了Firebase 身份验证电子邮件自定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的应用程序中使用了 firebase 身份验证,并且我正在设置无密码电子邮件注册.

I'm using firebase auth in my app and i'm setting up password-less email sign up.

我已设法从我自己的域设置电子邮件,但如何更改电子邮件中发送的文本以获取魔术链接?我可以看到其他模板电子邮件的配置,但看不到这个.

I have managed to set the email from my own domain but how do i change the text sent in the email for magic link? I can see the configuration for the other template emails but not this one.

有问题的电子邮件是这样的:

The email in question is this one:

Hello,

We received a request to sign in to teamname using this email address. If you want to sign in with your youremail account, click this link: link

If you did not request this link, you can safely ignore this email.

Thanks,

推荐答案

无法编辑电子邮件模板.这样做的原因是,这允许不良行为者使用 Firebase 向人们发送垃圾邮件,这会使服务面临风险.

There is no way to edit the email template. The reason for this is that this allows bad actors to use Firebase to spam people, which would put the service at risk.

要控制发送的消息,您必须自己发送并使用自定义电子邮件操作处理程序处理验证流程.请参阅如何修改电子邮件确认消息 - Firebase.

To control what message gets sent, you'll have to send it yourself and handle the verification flow with a custom email action handler. See How to modify Email Confirmation message - Firebase.

您也可以完全控制验证流程,然后使用 Admin SDK 用于设置用户个人资料的 emailVerified 标志.

You could also take full control of the verification flow, and then use the Admin SDK to set the emailVerified flag of the user's profile.

这篇关于Firebase 身份验证电子邮件自定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆