allow auth adapters to return a single value instead of arrays #655

Merged
merged 1 commit into from Sep 24, 2012

Conversation

Projects
None yet
2 participants
@d1rk
Member

d1rk commented Sep 24, 2012

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.

follow up to #651

nateabele added a commit that referenced this pull request Sep 24, 2012

Merge pull request #655 from d1rk/auth-array-scalar
allow auth adapters to return a single value instead of arrays

@nateabele nateabele merged commit 28c5ee3 into UnionOfRAD:dev Sep 24, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment