1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-20 05:21:29 +02:00
This commit is contained in:
Ryan Cramer
2022-04-15 10:51:39 -04:00
parent 7d8a031cbd
commit 2a8899dcd9

View File

@@ -211,7 +211,7 @@ class InputfieldPassword extends InputfieldText {
}
$this->attr('data-banMode', $this->complexifyBanMode ? $this->complexifyBanMode : 'loose');
$this->attr('data-factor', (float) $this->complexifyFactor >= 0 ? $this->complexifyFactor : 0);
$this->attr('data-factor', (float) $this->complexifyFactor >= 0 ? str_replace(',', '.', "$this->complexifyFactor") : 0);
$inputClass = $this->wire('sanitizer')->entities($this->attr('class'));
$this->addClass('InputfieldPasswordComplexify');