Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/password_policy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/PasswordPolicyConfig.php2
-rw-r--r--tests/lib/controller/PasswordPolicyConfigTest.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/PasswordPolicyConfig.php b/lib/PasswordPolicyConfig.php
index a2b114f..b55b490 100644
--- a/lib/PasswordPolicyConfig.php
+++ b/lib/PasswordPolicyConfig.php
@@ -52,7 +52,7 @@ class PasswordPolicyConfig {
* @return int
*/
public function getMinLength() {
- $minLength = $this->config->getAppValue('password_policy', 'minLength', '8');
+ $minLength = $this->config->getAppValue('password_policy', 'minLength', '10');
return (int)$minLength;
}
diff --git a/tests/lib/controller/PasswordPolicyConfigTest.php b/tests/lib/controller/PasswordPolicyConfigTest.php
index 1dc1ca0..e65b0b6 100644
--- a/tests/lib/controller/PasswordPolicyConfigTest.php
+++ b/tests/lib/controller/PasswordPolicyConfigTest.php
@@ -48,7 +48,7 @@ class ConfigTest extends TestCase {
$expected = 42;
$this->config->expects($this->once())->method('getAppValue')
- ->with('password_policy', 'minLength', '8')
+ ->with('password_policy', 'minLength', '10')
->willReturn($appConfigValue);
$this->assertSame($expected,