$validation->setErrorMessage($this->t('No one of the old passwords can be reused. Choose a different password'));
}
$validation->setErrorMessage($this->formatPlural($configuration['history_repeats'],'The last @count password cannot be reused. Choose a different password.','The last @count passwords cannot be reused. Choose a different password.',['@count'=>$configuration['history_repeats']]));
@@ -133,7 +170,7 @@ class PasswordHistory extends PasswordConstraintBase implements ContainerFactory
* {@inheritdoc}
*/
publicfunctiongetSummary(){
return$this->t('Number of allowed repeated passwords: @number-repeats',['@number-repeats'=>$this->configuration['history_repeats']]);
return$this->t('Number of passwords that will be checked in the user password update history: @number-repeats',['@number-repeats'=>$this->configuration['history_repeats']]);