Skip to content

Commit

Permalink
Skip requirement for password when changing the current user fields
Browse files Browse the repository at this point in the history
  • Loading branch information
CsarRamos committed May 27, 2022
1 parent 1e93130 commit 4f435ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Utils/System/Drupal8.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public function updateCMSName($ufID, $email) {
if ($user && $user->getEmail() != $email) {
$user->setEmail($email);

// Enforce supplying a password when changing the current user fields
// Skip requirement for password when changing the current user fields
$user->_skipProtectedUserFieldConstraint = TRUE;

if (!count($user->validate())) {
Expand Down

0 comments on commit 4f435ee

Please sign in to comment.