diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2017-01-16 11:24:03 +0100 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2017-01-16 11:24:03 +0100 |
commit | 3b76699c9c49f50268cc42ad7f0b5b9bba577663 (patch) | |
tree | 3b6fe72372995f268b4237a674f24cfb108b8f8f /apps/twofactor_backupcodes/tests/Unit | |
parent | 203436b16be40109131720f06ca39e393c373bae (diff) | |
download | nextcloud-server-3b76699c9c49f50268cc42ad7f0b5b9bba577663.tar.gz nextcloud-server-3b76699c9c49f50268cc42ad7f0b5b9bba577663.zip |
Increase 2fa backup codes entropy
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/twofactor_backupcodes/tests/Unit')
-rw-r--r-- | apps/twofactor_backupcodes/tests/Unit/Service/BackupCodeStorageTest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/twofactor_backupcodes/tests/Unit/Service/BackupCodeStorageTest.php b/apps/twofactor_backupcodes/tests/Unit/Service/BackupCodeStorageTest.php index 54738f74600..43cca6fc602 100644 --- a/apps/twofactor_backupcodes/tests/Unit/Service/BackupCodeStorageTest.php +++ b/apps/twofactor_backupcodes/tests/Unit/Service/BackupCodeStorageTest.php @@ -77,7 +77,7 @@ class BackupCodeStorageTest extends TestCase { ->will($this->returnValue('fritz')); $this->random->expects($this->exactly($number)) ->method('generate') - ->with(10, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789') + ->with(16, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789') ->will($this->returnValue('CODEABCDEF')); $this->hasher->expects($this->exactly($number)) ->method('hash') |