log1x/acf-encrypted-password
Composer 安装命令:
composer require log1x/acf-encrypted-password
包简介
A simple ACF field to use in place of the default Password field to encrypt the password stored in the database using PHP 5.5's password_hash.
关键字:
README 文档
README
This is a simple ACF field to use in place of the default Password field to encrypt the password stored in the database using PHP 5.5's password_hash() function.
Requirements
- PHP >= 7
- ACF >= 5
Installation
$ composer require log1x/acf-encrypted-password
Usage
You can verify the password using PHP 5.5's password_verify() function like so:
$input = $_GET['password']; $hash = get_field('password'); if (password_verify($input, $hash)) { echo 'Correct'; } else { echo 'Incorrect'; }
统计信息
- 总下载量: 280
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 10
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-09-02