summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorFabrizio Steiner <fabrizio.steiner@gmail.com>2017-05-07 23:10:02 +0200
committerFabrizio Steiner <fabrizio.steiner@gmail.com>2017-05-08 14:04:40 +0200
commitf2a2b34e4639e88f8d948a388a51f010212b42a3 (patch)
tree954643c654e79741bda826d9b29374f8fae0e5c9 /tests
parent59ee22101f228d9dec8c3930da0b12b0766a479a (diff)
downloadnextcloud-server-f2a2b34e4639e88f8d948a388a51f010212b42a3.tar.gz
nextcloud-server-f2a2b34e4639e88f8d948a388a51f010212b42a3.zip
Increase device password entropy. Use lower- and upper-case characters and digits, but exclude ambiguous characters. The number of digits has also been increased to 25.
Signed-off-by: Fabrizio Steiner <fabrizio.steiner@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/Settings/Controller/AuthSettingsControllerTest.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/Settings/Controller/AuthSettingsControllerTest.php b/tests/Settings/Controller/AuthSettingsControllerTest.php
index 7f4277acd73..5c1280ff4b0 100644
--- a/tests/Settings/Controller/AuthSettingsControllerTest.php
+++ b/tests/Settings/Controller/AuthSettingsControllerTest.php
@@ -133,11 +133,11 @@ class AuthSettingsControllerTest extends TestCase {
->method('getLoginName')
->will($this->returnValue('User13'));
- $this->secureRandom->expects($this->exactly(4))
+ $this->secureRandom->expects($this->exactly(5))
->method('generate')
- ->with(5, implode('', range('A', 'Z')))
+ ->with(5, ISecureRandom::CHAR_HUMAN_READABLE)
->will($this->returnValue('XXXXX'));
- $newToken = 'XXXXX-XXXXX-XXXXX-XXXXX';
+ $newToken = 'XXXXX-XXXXX-XXXXX-XXXXX-XXXXX';
$this->tokenProvider->expects($this->once())
->method('generateToken')