diff options
author | J0WI <J0WI@users.noreply.github.com> | 2021-07-07 17:53:36 +0200 |
---|---|---|
committer | J0WI <J0WI@users.noreply.github.com> | 2021-07-08 15:11:33 +0200 |
commit | 91051d92073f19908947cf05560de7e78ad80b86 (patch) | |
tree | a41cf8f633bfff6ceba68cc40a57d64630304012 /apps/encryption | |
parent | 3b656446afcac16b53aeb5906cb0d2dd57a23d7e (diff) | |
download | nextcloud-server-91051d92073f19908947cf05560de7e78ad80b86.tar.gz nextcloud-server-91051d92073f19908947cf05560de7e78ad80b86.zip |
Generate strong, human readable OTP
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
Diffstat (limited to 'apps/encryption')
-rw-r--r-- | apps/encryption/lib/Crypto/EncryptAll.php | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |