PHP-Fusion Development

check_admin_pass()

Check if admin password matches userdata.

Versions: 9

check_admin_pass( string $password ) : bool

Parameters

$password (string) (Required) Password.

Return Values

(bool) This function will return true if the password matches the user's admin password or if the admin's cookie or session is set and is valid.

Examples

if (check_admin_pass('SECRET_PASSWORD')) {
//
}