[wordpress插件] Case-Insensitive Passwords不区分大小写的密码

wordpress 插件 文章 2020-03-17 12:40 438 0 全屏看文

AI助手支持GPT4.0

评分
20
描述

The basic premise of my plugin is that it takes the password given to it and forces it to lowercase before hashing it and storing it in the database.

我的插件的基本前提是,它会使用为其提供的密码,并在将其哈希并将其存储在数据库之前强制将其转换为小写。

When a user logs in, it will take the password input and force it to lowercase, hash it, and compare it to what is stored in the database.

用户登录时,它将使用密码输入并将其强制转换为小写字母,对其进行哈希处理并将其与数据库中存储的内容进行比较。

This produces the affect of case-insensitivity.

这产生了不区分大小写的影响。

The case-insensitivity only works for newly generated passwords, so I built the plugin to check the password submitted without forcing to lowercase, if it fails it will force it to lowercase and check again.

不区分大小写仅适用于新生成的密码,因此我构建了插件来检查提交的密码,而不会强制将其转换为小写,如果失败,它将强制将其转换为小写并再次检查。

安装步骤

This section describes how to install the plugin and get it working.

本节介绍如何安装插件并使其正常工作。

    1. Upload case-insensitive-passwords directory to the /wp-content/plugins/ directory.
    2. 不区分大小写的密码目录上传到 / wp-content / plugins / 目录。

    3. Activate the plugin through the ‘Plugins’ menu in WordPress.
    4. 通过WordPress中的“插件”菜单激活插件。

下载地址
https://downloads.wordpress.org/plugin/case-insensitive-passwords.0.0.1.zip
-EOF-

AI助手支持GPT4.0