diff --git a/src/core/models/PasswordModel.php b/src/core/models/PasswordModel.php index f215f01570115a633e8f3f5da12eae35a2cfdfd7..5ca66d85f65b8026cb8b9fdc5edfb86a40a8811e 100644 --- a/src/core/models/PasswordModel.php +++ b/src/core/models/PasswordModel.php @@ -71,8 +71,8 @@ class PasswordModel { ValidatorModel::notEmpty($aArgs, ['id']); ValidatorModel::intVal($aArgs, ['id', 'value']); - ValidatorModel::boolType($aArgs, ['enabled']); - + ValidatorModel::stringType($aArgs, ['enabled']); + DatabaseModel::update([ 'table' => 'password_rules', 'set' => [ diff --git a/test/PasswordControllerTest.php b/test/PasswordControllerTest.php index 929716e8dd2f22a8d97ac7548567145b64cc0576..17d81e34f80fb10439f961786f574a5415bc3bd6 100644 --- a/test/PasswordControllerTest.php +++ b/test/PasswordControllerTest.php @@ -33,7 +33,7 @@ class PasswordControllerTest extends TestCase [ 'id' => 1, 'value' => 5, - 'enabled' => 'true', + 'enabled' => true, ] ] ];