]> source.dussan.org Git - nextcloud-server.git/commitdiff
Remove special characters
authorLukas Reschke <lukas@statuscode.ch>
Thu, 4 May 2017 22:40:23 +0000 (00:40 +0200)
committerLukas Reschke <lukas@statuscode.ch>
Thu, 18 May 2017 18:49:05 +0000 (20:49 +0200)
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
core/Controller/ClientFlowLoginController.php

index 45287f3048c65ce67af8ace1266191dd1bd6b431..70cf8e8cebc1b1eec381350b8443fa49ea25e002 100644 (file)
@@ -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,