UnionOfRAD/lithium — pull request #651 by d1rk (2012-09-21 09:24:42+00:00)
Title: allow auth adapters to return a single value instead of arrays

Change behavior of auth adapters so, that they can return scalar values.

Currently, auth adapters must return arrays, because of a hard-coded unset on `$data['password']`.

This PR changed the behavior so, that an auth adapter can return a scalar value without being presented with a

Fatal error: Cannot unset string offsets in /libraries/lithium/security/Auth.php on line 160

An updated unit-test is included.