diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2016-06-27 17:03:06 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-27 17:03:06 +0300 |
commit | 96cb076e50b21189cc746d8d6c8e728a95ab4586 (patch) | |
tree | 9aab6e261b9a64c88a2b8f065ba3199a26b43aca | |
parent | c2932b21918821786f988334cffdd14d7e6be622 (diff) | |
parent | 48f998546dcd20cee9abd65c0fd8a860a804c79f (diff) |
Merge pull request #4 from nextcloud/make-10-the-minimum-default
Make 10 characters the minimum default password
-rw-r--r-- | lib/PasswordPolicyConfig.php | 2 | ||||
-rw-r--r-- | tests/lib/controller/PasswordPolicyConfigTest.php | 2 |
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, |