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();
+ }
+
}