AppToken to 72 chars
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
bb5e5efa6d
commit
aae079aa29
|
@ -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(),
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue