From 91051d92073f19908947cf05560de7e78ad80b86 Mon Sep 17 00:00:00 2001 From: J0WI Date: Wed, 7 Jul 2021 17:53:36 +0200 Subject: Generate strong, human readable OTP Signed-off-by: J0WI --- apps/encryption/lib/Crypto/EncryptAll.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/encryption') diff --git a/apps/encryption/lib/Crypto/EncryptAll.php b/apps/encryption/lib/Crypto/EncryptAll.php index c8c302f10c7..1889c557cdc 100644 --- a/apps/encryption/lib/Crypto/EncryptAll.php +++ b/apps/encryption/lib/Crypto/EncryptAll.php @@ -394,7 +394,7 @@ class EncryptAll { * @return string password */ protected function generateOneTimePassword($uid) { - $password = $this->secureRandom->generate(8); + $password = $this->secureRandom->generate(16, ISecureRandom::CHAR_HUMAN_READABLE); $this->userPasswords[$uid] = $password; return $password; } -- cgit v1.2.3