projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e908629
)
add password to wp_signon
author
David Hayes
<dhayes@lalgbtcenter.org>
Thu, 8 Jul 2021 01:06:55 +0000
(18:06 -0700)
committer
David Hayes
<dhayes@lalgbtcenter.org>
Thu, 8 Jul 2021 01:06:55 +0000
(18:06 -0700)
CRM/Utils/System/WordPress.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Utils/System/WordPress.php
b/CRM/Utils/System/WordPress.php
index d69c0fcc21af2c28f86f7e0806cd19d4f0af88c5..5348ae6cf1433fe7e98881179505a8abd2c3b8f9 100644
(file)
--- 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);
}