问题描述
我在我的应用中使用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身份验证电子邮件自定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!