Collections functions
General functions
Render functions
Theme permission functions
Resource functions

get_password_hash_info()

Description

Helper function to get the password hash information (algorithm and options) from the global scope.

Parameters

This function accepts no parameters.

Return

array

Location

include/login_functions.php lines 374 to 380

Definition

 
function get_password_hash_info()
    {
    return [
        
'algo' => ($GLOBALS['password_hash_info']['algo'] ?? PASSWORD_BCRYPT),
        
'options' => ($GLOBALS['password_hash_info']['options'] ?? ['cost' => 12])
    ];
    }

This article was last updated 12th August 2022 19:05 Europe/London time based on the source file dated 1st July 2022 09:30 Europe/London time.