Fix hashing via bcrypt

This commit is contained in:
Trevor Slocum 2020-11-13 13:14:28 -08:00
parent b28709f301
commit 124d051cb6

View File

@ -201,7 +201,7 @@ if (TINYIB_TIMEZONE != '') {
date_default_timezone_set(TINYIB_TIMEZONE); date_default_timezone_set(TINYIB_TIMEZONE);
} }
$bcrypt_salt = '$2y$12$' . str_replace('+', '.', str_pad(substr(base64_encode(TINYIB_TRIPSEED), 0, 22), 22, "=")); $bcrypt_salt = '$2y$12$' . str_pad(str_replace('=', '/', str_replace('+', '.', substr(base64_encode(TINYIB_TRIPSEED), 0, 22))), 22, '/');
$redirect = true; $redirect = true;
// Check if the request is to make a post // Check if the request is to make a post