summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/Controller/ClientFlowLoginController.php2
-rw-r--r--tests/Core/Controller/ClientFlowLoginControllerTest.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/core/Controller/ClientFlowLoginController.php b/core/Controller/ClientFlowLoginController.php
index f18af83a9c7..ca9c092321a 100644
--- a/core/Controller/ClientFlowLoginController.php
+++ b/core/Controller/ClientFlowLoginController.php
@@ -221,7 +221,7 @@ class ClientFlowLoginController extends Controller {
return $response;
}
- $token = $this->random->generate(60);
+ $token = $this->random->generate(72);
$this->tokenProvider->generateToken(
$token,
$this->userSession->getUser()->getUID(),
diff --git a/tests/Core/Controller/ClientFlowLoginControllerTest.php b/tests/Core/Controller/ClientFlowLoginControllerTest.php
index afaca3dacab..7c525b53210 100644
--- a/tests/Core/Controller/ClientFlowLoginControllerTest.php
+++ b/tests/Core/Controller/ClientFlowLoginControllerTest.php
@@ -310,7 +310,7 @@ class ClientFlowLoginControllerTest extends TestCase {
$this->random
->expects($this->once())
->method('generate')
- ->with(60)
+ ->with(72)
->willReturn('MyGeneratedToken');
$user = $this->createMock(IUser::class);
$user
@@ -374,7 +374,7 @@ class ClientFlowLoginControllerTest extends TestCase {
$this->random
->expects($this->once())
->method('generate')
- ->with(60)
+ ->with(72)
->willReturn('MyGeneratedToken');
$user = $this->createMock(IUser::class);
$user