Skip to content

Commit b0a0b92

Browse files
committed
fix sqlsrv dbauth bug
1 parent c1aa630 commit b0a0b92

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Tqdev/PhpCrudApi/Middleware/DbAuthMiddleware.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface
6363
$columnNames = array_map('trim', explode(',', $returnedColumns));
6464
$columnNames[] = $passwordColumnName;
6565
$columnNames[] = $pkName;
66+
$columnNames = array_values(array_unique($columnNames));
6667
}
6768
$columnOrdering = $this->ordering->getDefaultColumnOrdering($table);
6869
if ($path == 'register') {

0 commit comments

Comments
 (0)