You are here

LogintobogganPasswordLength.php in LoginToboggan 8

File

src/Plugin/Validation/Constraint/LogintobogganPasswordLength.php
View source
<?php

namespace Drupal\logintoboggan\Plugin\Validation\Constraint;

use Symfony\Component\Validator\Constraint;

/**
 * Checks if a name is being used as another account's email.
 *
 * @Constraint(
 *   id = "LogintobogganPasswordLength",
 *   label = @Translation("Check password meets min length setting", context = "Validation")
 * )
 */
class LogintobogganPasswordLength extends Constraint {

  /**
   * Violation message.
   *
   * @var string
   */
  public $message = 'This password does not meet the required length of %length characters.';

}

Classes

Namesort descending Description
LogintobogganPasswordLength Checks if a name is being used as another account's email.