Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge pull request zendframework/zendframework#6510 from clarkphp/fix…
Browse files Browse the repository at this point in the history
…-6428

Fix 6428 - authenticate() always fails on IBMi when using DB table-based authentication
  • Loading branch information
Show file tree
Hide file tree
Showing 2 changed files with 416 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Adapter/DbTable/AbstractAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,11 @@ protected function authenticateQuerySelect(Sql\Select $dbSelect)
$resultIdentities = array();
// iterate result, most cross platform way
foreach ($result as $row) {
// ZF-6428 - account for db engines that by default return uppercase column names
if (isset($row['ZEND_AUTH_CREDENTIAL_MATCH'])) {
$row['zend_auth_credential_match'] = $row['ZEND_AUTH_CREDENTIAL_MATCH'];
unset($row['ZEND_AUTH_CREDENTIAL_MATCH']);
}
$resultIdentities[] = $row;
}
} catch (\Exception $e) {
Expand Down
Loading

0 comments on commit 02c9227

Please sign in to comment.