From 2a8899dcd977fc413dafbd33c7edc494c8ebbfab Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Fri, 15 Apr 2022 10:51:39 -0400 Subject: [PATCH] Fix issue processwire/processwire-issues#1557 --- .../Inputfield/InputfieldPassword/InputfieldPassword.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wire/modules/Inputfield/InputfieldPassword/InputfieldPassword.module b/wire/modules/Inputfield/InputfieldPassword/InputfieldPassword.module index c8fc80a9..08e72f2a 100644 --- a/wire/modules/Inputfield/InputfieldPassword/InputfieldPassword.module +++ b/wire/modules/Inputfield/InputfieldPassword/InputfieldPassword.module @@ -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');