简体   繁体   English

如何在 dj-rest-auth 和 all-auth 中覆盖验证 email function?

[英]How to override verification email function in dj-rest-auth and all-auth?

I want to override the email verification method and put it in a Celery queue as it takes up quite some time (2-3 seconds) for the email to send.我想覆盖 email 验证方法并将其放入 Celery 队列中,因为发送 email 需要相当长的时间(2-3 秒)。 My question is, where can I find the function with sends the email?我的问题是,我在哪里可以找到发送 email 的 function?

You can use Django Celery Email to send your emails via a celery queue: https://pypi.org/project/django-celery-email/ You can use Django Celery Email to send your emails via a celery queue: https://pypi.org/project/django-celery-email/

If you have a higher volume that needs to be send, you can also user Django-Mailer: https://pypi.org/project/django-mailer/如果你有更大的体积需要发送,你也可以使用 Django-Mailer: https://pypi.org/project/django-mailer/

These plugins will replace your default email backend and all emails will be processed via them.这些插件将替换您的默认 email 后端,所有电子邮件都将通过它们处理。

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

相关问题 如何禁用all-auth的验证步骤? (发送验证邮件) - How to disable verification step for all-auth? (sending verification email ) 是否可以使用 dj-rest-auth 缩短 email 确认密钥? - Is it possible to make email confirmation key shorter with dj-rest-auth? dj-rest-auth:ACCOUNT_LOGIN_ON_EMAIL_CONFIRMATION 不工作 - dj-rest-auth: ACCOUNT_LOGIN_ON_EMAIL_CONFIRMATION not working dj-rest-auth 注册获取 - dj-rest-auth registration fetch 使用rest-auth从Django all-auth检索给定确认密钥(电子邮件验证)的用户电子邮件地址 - Retrieve user e-mailaddress given confirmation key (email verification) from Django all-auth with rest-auth dj-rest-auth 将社交注册限制为特定的 email 地址域 - dj-rest-auth limit social sign up to a specific email address domain 如何使用 Django Rest Framework 和 Dj-rest-auth 在 React 中显示我的重置密码页面 - How to show my reset password page in React using Django Rest Framework and Dj-rest-auth dj-rest-auth 如何在测试时使用 REST_USE_JWT = True 对用户进行身份验证 - dj-rest-auth How to authenticate user with REST_USE_JWT = True when testing 注销后后端未删除 dj-rest-auth 令牌 - dj-rest-auth token not deleted in backend after logout 使用 Dj-rest-auth 指导并在 flutter 应用程序中实现 google 登录 - guidance with Dj-rest-auth and implementing google login in flutter app
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM