Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auth form Adapter dont generate right conditions #56

Closed
agborkowski opened this issue Aug 1, 2011 · 3 comments
Closed

Auth form Adapter dont generate right conditions #56

agborkowski opened this issue Aug 1, 2011 · 3 comments

Comments

@agborkowski
Copy link
Contributor

my debug loks like that:
http://pastium.org/view/86337d69c1a2c64efb874a50f90fde1c

after add empty validator to config

'validators' => array(
'password' => function($data) {
return $data;
}
)
conditions generate fine... (with password key)

@nateabele
Copy link
Member

This isn't a bug. Fields with validators are omitted from queries. For example, since the default configuration implements a password validator using bcrypt, the password is omitted from the query conditions, as it will never match.

@agborkowski
Copy link
Contributor Author

@nateabele if i have not validators password omnited too after add empty password validator all works right..

@nateabele
Copy link
Member

If you're using simple hashed passwords (i.e. SHA), you should add a filter to the password, and add 'validators' => array('password' => false).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants