X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FSystem%2FWordPress.php;h=d69c0fcc21af2c28f86f7e0806cd19d4f0af88c5;hb=0e69cbc373c8cf4de95eb028ff67526b4d9d3350;hp=26acbb1a8aa1a80d278ea5064bd13b889d8e0d51;hpb=4f2c365b76011485ca0c61c1242ffb756d51d31c;p=civicrm-core.git diff --git a/CRM/Utils/System/WordPress.php b/CRM/Utils/System/WordPress.php index 26acbb1a8a..d69c0fcc21 100644 --- a/CRM/Utils/System/WordPress.php +++ b/CRM/Utils/System/WordPress.php @@ -1462,4 +1462,12 @@ class CRM_Utils_System_WordPress extends CRM_Utils_System_Base { add_action('profile_update', [$civicrm->users, 'update_user']); } + /** + * Depending on configuration, either let the admin enter the password + * when creating a user or let the user do it via email link. + */ + public function showPasswordFieldWhenAdminCreatesUser() { + return !$this->isUserRegistrationPermitted(); + } + }