gpt4 book ai didi

python - firebase-admin python 发送密码重置邮件

转载 作者:行者123 更新时间:2023-12-05 05:11:53 26 4
gpt4 key购买 nike

在 Python 中,我正在尝试“发送密码重置电子邮件”,javascript 引用 (https://firebase.google.com/docs/reference/js/firebase.auth.Auth#sendPasswordResetEmail)。到目前为止(也是最近)它看起来像是添加了“生成密码重置链接”(https://github.com/firebase/firebase-admin-python/releases)。有谁知道发送电子邮件的下一步?我们自己发送电子邮件吗?如果是这样,有什么建议吗?有没有办法直接用python发送邮件?

提前感谢您的所有帮助!

最佳答案

可能会迟到但其他人可以看到:

email = 'user@example.com'
link = auth.generate_password_reset_link(email, action_code_settings)
# Construct password reset email from a template embedding the link, and send
# using a custom SMTP server.
send_custom_email(email, link)

更多内容在这里:https://firebase.google.com/docs/auth/admin/email-action-links#python_1

关于python - firebase-admin python 发送密码重置邮件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54995334/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com