summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2017-05-05 00:40:23 +0200
committerLukas Reschke <lukas@statuscode.ch>2017-05-18 20:49:05 +0200
commite86749121c626db9d6937c182634096de6a015fe (patch)
treedf50a77ec1d2dd42e359c305df65a01d8e58c42e /core
parent4b4d3bb1c2aed09c288350822e6677426594a7ea (diff)
downloadnextcloud-server-e86749121c626db9d6937c182634096de6a015fe.tar.gz
nextcloud-server-e86749121c626db9d6937c182634096de6a015fe.zip
Remove special characters
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
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 45287f3048c..70cf8e8cebc 100644
--- a/core/Controller/ClientFlowLoginController.php
+++ b/core/Controller/ClientFlowLoginController.php
@@ -252,7 +252,7 @@ class ClientFlowLoginController extends Controller {
return $response;
}
- $token = $this->random->generate(72);
+ $token = $this->random->generate(72, ISecureRandom::CHAR_UPPER.ISecureRandom::CHAR_LOWER.ISecureRandom::CHAR_DIGITS);
$uid = $this->userSession->getUser()->getUID();
$generatedToken = $this->tokenProvider->generateToken(
$token,