Skip to content

Commit

Permalink
Merge pull request #32 from rudott/master
Browse files Browse the repository at this point in the history
Added checkPreAuth call before checkPostAuth
  • Loading branch information
tmilos authored Nov 4, 2016
2 parents c4b1765 + e751bfe commit 25b4f3c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ public function authenticate(TokenInterface $token)
}

if ($this->userChecker && $user instanceof UserInterface) {
$this->userChecker->checkPreAuth($user);
$this->userChecker->checkPostAuth($user);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,10 @@ public function test_calls_user_checker_if_provided()
->method('loadUserByUsername')
->willReturn($user);

$userCheckerMock->expects($this->once())
->method('checkPreAuth')
->with($user);

$userCheckerMock->expects($this->once())
->method('checkPostAuth')
->with($user);
Expand Down

0 comments on commit 25b4f3c

Please sign in to comment.