You are here

class LdapProtectedUserFieldConstraint in Lightweight Directory Access Protocol (LDAP) 8.4

Checks if the plain text password is provided for editing a protected field.

Plugin annotation


@Constraint(
  id = "LdapProtectedUserField",
  label = @Translation("LDAP password required for protected field change", context = "Validation")
)

Hierarchy

Expanded class hierarchy of LdapProtectedUserFieldConstraint

1 file declares its use of LdapProtectedUserFieldConstraint
ProtectedUserFieldConstraintValidatorTest.php in ldap_user/tests/src/Unit/ProtectedUserFieldConstraintValidatorTest.php

File

ldap_user/src/Plugin/Validation/Constraint/LdapProtectedUserFieldConstraint.php, line 15

Namespace

Drupal\ldap_user\Plugin\Validation\Constraint
View source
class LdapProtectedUserFieldConstraint extends Constraint {

  /**
   * Violation message.
   *
   * @var string
   */
  public $message = "Your current password is missing or incorrect; it's required to change the %name.";

}

Members