PHP-Fusion Development

set_admin_pass()

Set password of the currently logged in an administrator.

Versions: 9

set_admin_pass( string $password ) : bool

The function will set the $_COOKIE[COOKIE_PREFIX.'admin'] if the submitted admin password matches the users admin password in $userdata['user_admin_password'].

Parameters

$password (string) (Required) Any password.

Return Values

(bool) True if a password is set.

Examples

set_admin_pass('SECRET_PASSWORD');