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 10:24:17 +0300
commit5a97148863f889219a664b8d42f5714c0c95ace1 (patch)
tree65d02fabcc5ce64e7b8187b520d05c2cd30b5364 /core
parentf7ecec855bcaff9fe2d92aea75564eb8bc066adf (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 ab9d98df8d6..c3b88f752db 100644
--- a/core/Controller/ClientFlowLoginController.php
+++ b/core/Controller/ClientFlowLoginController.php
@@ -329,7 +329,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));