summaryrefslogtreecommitdiffstats
path: root/core/Controller
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-05-16 15:09:35 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2018-05-22 09:24:17 +0200
commit5a97148863f889219a664b8d42f5714c0c95ace1 (patch)
tree65d02fabcc5ce64e7b8187b520d05c2cd30b5364 /core/Controller
parentf7ecec855bcaff9fe2d92aea75564eb8bc066adf (diff)
downloadnextcloud-server-5a97148863f889219a664b8d42f5714c0c95ace1.tar.gz
nextcloud-server-5a97148863f889219a664b8d42f5714c0c95ace1.zip
Don't use special chars to avoid confusion
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'core/Controller')
-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));