You are here

LdapProtectedUserFieldConstraint.php in Lightweight Directory Access Protocol (LDAP) 8.4

File

ldap_user/src/Plugin/Validation/Constraint/LdapProtectedUserFieldConstraint.php
View source
<?php

namespace Drupal\ldap_user\Plugin\Validation\Constraint;

use Symfony\Component\Validator\Constraint;

/**
 * Checks if the plain text password is provided for editing a protected field.
 *
 * @Constraint(
 *   id = "LdapProtectedUserField",
 *   label = @Translation("LDAP password required for protected field change", context = "Validation")
 * )
 */
class LdapProtectedUserFieldConstraint extends Constraint {

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

}

Classes

Namesort descending Description
LdapProtectedUserFieldConstraint Checks if the plain text password is provided for editing a protected field.