Monday, February 11, 2013

Auth login fail with blowfish

I migrate my project to the final 2.3 version and I wish to incorporate blowfish adapter to match password.

1) I updated SQL definition to char(60) on password field.
2) I updated the adapter from "Form" to "Blowfish" in the component definition.
3) I did load the security library in the model with: App::uses('Security', 'Utility');
4) I updated the hash password procedure from "Autocomponent::password('plain')" to "Security:hash('plain', 'blowfish')" on beforeSave callback.



Add new users works well with new method but $this->Auth->Login failt with "Warning Invalid Salt...".
In the sql_dump I not seen the password field in conditions to match.

I appreciate any indication. I also mentioned that the old method works well.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments: