wordpress 中的 user_activation_key 是什么
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/39263010/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What is user_activation_key in wordpress
提问by Xiaojun Chen
I am new to WordPress and wish to know what is the user_activation_key
in the wp_users
table? It's like a string of digit with an encrypted code (similar to the password). Why some of the user do not have one.
我是 WordPress 的新手,想知道表user_activation_key
中的内容是什么wp_users
?它就像一串带有加密代码的数字(类似于密码)。为什么有些用户没有。
回答by dipak_pusti
user_activation_key
is one of those keys that WordPress uses for authenticity of a Reset Passwordrequest.
user_activation_key
是 WordPress 用于验证重置密码请求真实性的密钥之一。
So, when you are saying this key is empty for some users, the reason is, those users have never requested for a password reset.
因此,当您说某些用户的此密钥为空时,原因是这些用户从未请求过密码重置。
When a password reset is requested a temporary key is generated called check_password_reset_key
and sent via email for the reset process.
当请求重置密码时,会生成一个临时密钥,调用check_password_reset_key
并通过电子邮件发送以用于重置过程。
When the user goes to the generated link, this key is directly compared with user_activation_key
. If both keys don't match then it is considered to be an Invalid Request. Otherwise it proceeds and the user will be allowed to enter a new password for his account.
当用户转到生成的链接时,此键直接与 进行比较user_activation_key
。如果两个键不匹配,则将其视为无效请求。否则,它会继续,用户将被允许为其帐户输入新密码。
If you want to understand how it works with more details, you can check the wordpress documentation.
如果你想了解它是如何工作的更多细节,你可以查看wordpress 文档。