Skip to content

Commit

Permalink
Merge branch 'port-2.x-bugfixes' into slim-3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremykendall committed Jan 18, 2016
2 parents acf8905 + e8323e6 commit 1f2d0bb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
build
composer.lock
vendor/
2 changes: 1 addition & 1 deletion src/Adapter/Db/PdoAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function authenticate()
}

$validationResult = $this->passwordValidator->isValid(
$this->credential, $user[$this->credentialColumn], $user['id']
$this->credential, $user[$this->credentialColumn], $user[$this->identityColumn]
);

if ($validationResult->isValid()) {
Expand Down
6 changes: 3 additions & 3 deletions tests/Adapter/Db/PdoAdapterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function testAuthenticationSuccess()
->with(
$this->plainTextPassword,
$this->identity['hashed_password'],
$this->identity['id']
$this->identity['email_address']
)
->will($this->returnValue(new ValidationResult(ValidationResult::SUCCESS)));

Expand All @@ -90,7 +90,7 @@ public function testAuthenticationFailsBadPassword()
->with(
'bad password',
$this->identity['hashed_password'],
$this->identity['id']
$this->identity['email_address']
)
->will($this->returnValue(
new ValidationResult(ValidationResult::FAILURE_PASSWORD_INVALID)
Expand Down Expand Up @@ -130,7 +130,7 @@ public function testIssue13()
->with(
$this->plainTextPassword,
$this->identity['hashed_password'],
$this->identity['id']
$this->identity['email_address']
)
->will($this->returnValue(new ValidationResult(ValidationResult::SUCCESS)));

Expand Down

0 comments on commit 1f2d0bb

Please sign in to comment.