如何从 Wordfence 禁用身份验证验证电子邮件发送? [英] How to disable auth verification email send, from Wordfence?

查看:33
本文介绍了如何从 Wordfence 禁用身份验证验证电子邮件发送?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Wordfence 文档中说:

In Wordfence documentation says:

"过滤器wordfence_ls_require_captcha"可用于在您选择的情况下禁用验证码.这对于包含带有身份验证的 REST 端点的插件可能很有用,这些端点不需要 CAPTCHA.必要时,您的过滤器应返回 false 以绕过 CAPTCHA 要求,否则应返回 true"

"The filter "wordfence_ls_require_captcha" can be used to disable the CAPTCHA in circumstances of your choice. This may be useful for plugins that contain REST endpoints with authentication that should not require a CAPTCHA. Your filter should return false to bypass the CAPTCHA requirement when necessary, or otherwise true when the CAPTCHA should be required"

如果我尝试通过 JWT 进行 API 调用,我会收到一个通过电子邮件的身份验证链接,但无法继续我的流程.这个 API 调用已经有用户名:认证用户的密码.因此,我该如何使用这个过滤器

If I tried to make an API Call through JWT, I am getting an auth verification link via email and could not proceed to my flow. This API Call already has username:password for auth user. Thus, how could I use this filter

wordfence_ls_require_captcha

为了禁用身份验证邮件,如文档中建议的 Wordfence(在收件箱中发送的电子邮件,带有验证链接,以便登录 - 这是我想要禁用的)?

in order to disable the auth verification mail like Wordfence suggest in the documentation (email sent in the inbox, with verification link, in order to login - this is what I want to disable)?

*我已经为未经授权的用户安装了一个禁用所有 API 调用的插件.所以,这个验证邮件暂时没用.

*I already have installed a plugin that Disables all APIs Calls, for un-authorized users. So, this verification email is useless for now.

推荐答案

查看最新的 WordFence 可用版本(在撰写本文时为 7.5.5)似乎主题为需要登录验证"的电子邮件没有出现.仅在两个条件 (AND) 下发送:

Looking at the latest WordFence available version (7.5.5 at the time of writing) seems that the email with subject "Login Verification Required" is sent only under two conditions (AND):

  • $requireCAPTCHA = true
  • $performVerification = true

由于我们可以使用该过滤器使 $requireCAPTCHA = false,这就是您想要停用该电子邮件的方式:

Since we can make $requireCAPTCHA = false using that filter, this is how you want to deactivate that email:

add_filter( 'wordfence_ls_require_captcha', '__return_false' );

这篇关于如何从 Wordfence 禁用身份验证验证电子邮件发送?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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