Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-05-16 16:09:35 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2018-05-22 15:51:30 +0300
commit73f8373151be49eb654ecc421ccb949e80e2f19a (patch)
tree1acd91e056e48ff6babcc31b4f8a5ef4a7b8385a /core
parentd03265fb62484536d00b90974f27b0e6282c2e6a (diff)
Don't use special chars to avoid confusion
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'core')
-rw-r--r--core/Controller/ClientFlowLoginController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Controller/ClientFlowLoginController.php b/core/Controller/ClientFlowLoginController.php
index 0e7fbf892b6..3bd396a0b97 100644
--- a/core/Controller/ClientFlowLoginController.php
+++ b/core/Controller/ClientFlowLoginController.php
@@ -291,7 +291,7 @@ class ClientFlowLoginController extends Controller {
);
if($client) {
- $code = $this->random->generate(128);
+ $code = $this->random->generate(128, ISecureRandom::CHAR_UPPER.ISecureRandom::CHAR_LOWER.ISecureRandom::CHAR_DIGITS);
$accessToken = new AccessToken();
$accessToken->setClientId($client->getId());
$accessToken->setEncryptedToken($this->crypto->encrypt($token, $code));