add password to wp_signon
authorDavid Hayes <dhayes@lalgbtcenter.org>
Thu, 8 Jul 2021 01:06:55 +0000 (18:06 -0700)
committerDavid Hayes <dhayes@lalgbtcenter.org>
Thu, 8 Jul 2021 01:06:55 +0000 (18:06 -0700)
CRM/Utils/System/WordPress.php

index d69c0fcc21af2c28f86f7e0806cd19d4f0af88c5..5348ae6cf1433fe7e98881179505a8abd2c3b8f9 100644 (file)
@@ -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);
     }