Shardj / zf1-future

PHP 8.1 compatible version of ZF1
BSD 3-Clause "New" or "Revised" License
440 stars 192 forks source link

Add check in DbTable Authentication Adapter for empty results when AmbiguityIdentity is TRUE #419

Closed rruchte closed 2 months ago

rruchte commented 5 months ago

Add check in DbTable Authentication Adapter for empty results when AmbiguityIdentity is TRUE

fixes #417

Previously, _authenticateValidateResult expected a valid identity record to be passed as an argument, leading to an error when AmbiguityIdentity is TRUE but no matching identity records were found. Now, it gracefully handles the condition and sends the same failure message that _authenticateValidateResultSet sends when no matching records are found.