PHP code example of log1x / acf-encrypted-password
1. Go to this page and download the library: Download log1x/acf-encrypted-password library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
log1x / acf-encrypted-password example snippets
$input = $_GET['password'];
$hash = get_field('password');
if (password_verify($input, $hash)) {
echo 'Correct';
} else {
echo 'Incorrect';
}