->with('192.168.0.1')
->willReturn(200);
$this->userManager->expects($this->once())
- ->method('checkPassword')
+ ->method('checkPasswordNoLogging')
->will($this->returnValue($user));
$this->userSession->expects($this->once())
- ->method('login')
- ->with($user, $password);
+ ->method('completeLogin')
+ ->with($user, ['loginName' => $loginName, 'password' => $password]);
$this->userSession->expects($this->once())
->method('createSessionToken')
- ->with($this->request, $user->getUID(), $user, $password, false);
+ ->with($this->request, $user->getUID(), $loginName, $password, false);
$this->twoFactorManager->expects($this->once())
->method('isTwoFactorAuthenticated')
->with($user)
->with('192.168.0.1')
->willReturn(200);
$this->userManager->expects($this->once())
- ->method('checkPassword')
+ ->method('checkPasswordNoLogging')
->will($this->returnValue($user));
$this->userSession->expects($this->once())
- ->method('login')
- ->with($user, $password);
+ ->method('completeLogin')
+ ->with($user, ['loginName' => $loginName, 'password' => $password]);
$this->userSession->expects($this->once())
->method('createSessionToken')
- ->with($this->request, $user->getUID(), $user, $password, true);
+ ->with($this->request, $user->getUID(), $loginName, $password, true);
$this->twoFactorManager->expects($this->once())
->method('isTwoFactorAuthenticated')
->with($user)
->with('192.168.0.1')
->willReturn(200);
$this->userManager->expects($this->once())
- ->method('checkPassword')
+ ->method('checkPasswordNoLogging')
->will($this->returnValue($user));
$this->userSession->expects($this->once())
- ->method('login')
- ->with('john@doe.com', $password);
+ ->method('completeLogin')
+ ->with($user, ['loginName' => 'john@doe.com', 'password' => $password]);
$this->userSession->expects($this->once())
->method('createSessionToken')
->with($this->request, $user->getUID(), 'john@doe.com', $password, false);
->with('192.168.0.1')
->willReturn(200);
$this->userManager->expects($this->once())
- ->method('checkPassword')
+ ->method('checkPasswordNoLogging')
->will($this->returnValue($user));
$this->userSession->expects($this->once())
- ->method('login')
- ->with('john@doe.com', $password);
+ ->method('completeLogin')
+ ->with($user, ['loginName' => 'john@doe.com', 'password' => $password]);
$this->userSession->expects($this->once())
->method('createSessionToken')
->with($this->request, $user->getUID(), 'john@doe.com', $password, false);