From 4fc945ae7693cfe1b9abe1188180ee3e0758b6f5 Mon Sep 17 00:00:00 2001 From: David Hayes Date: Wed, 7 Jul 2021 18:06:55 -0700 Subject: [PATCH] add password to wp_signon --- CRM/Utils/System/WordPress.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CRM/Utils/System/WordPress.php b/CRM/Utils/System/WordPress.php index d69c0fcc21..5348ae6cf1 100644 --- a/CRM/Utils/System/WordPress.php +++ b/CRM/Utils/System/WordPress.php @@ -922,7 +922,10 @@ class CRM_Utils_System_WordPress extends CRM_Utils_System_Base { if (!current_user_can('create_users')) { $creds = []; $creds['user_login'] = $params['cms_name']; + $creds['user_password'] = $user_data['user_pass']; $creds['remember'] = TRUE; + + // @todo handle a wp_signon failure wp_signon($creds, FALSE); } -- 2.25.1