Collections functions
General functions
Node functions
Render functions
Theme permission functions
User 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 19th March 2024 08:05 Europe/London time based on the source file dated 20th February 2024 17:10 Europe/London time.