Skip to content
Snippets Groups Projects
Commit 51a775e7 authored by César's avatar César :smiley:
Browse files

Skip requirement for password when changing the current user fields

parent 48335576
No related merge requests found
......@@ -114,6 +114,9 @@ class CRM_Utils_System_Drupal8 extends CRM_Utils_System_DrupalBase {
if ($user && $user->getEmail() != $email) {
$user->setEmail($email);
// Skip requirement for password when changing the current user fields
$user->_skipProtectedUserFieldConstraint = TRUE;
if (!count($user->validate())) {
$user->save();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment