Compression v1.4

Compression is a light weight class that will load a CSS stylesheet, bind and translate given variables, compress and remove white space and cache the output for future use.

Debugging the CakePHP Auth Component

Wednesday, December 10th 2008, 2:46am
Topics: CakePHP, Resources
Tags: Cakephp, Auth, Component
Views: 1,992, Comments: 1

Finally, I figured it out. For the past 2 days I have been messing with the CakePHP Auth Component (A prebuilt user login and authentication system). The problem was that it would not log in, even though I was entering correct data from the database. I spent many hours and even posted on the Google CakePHP Discussion group. Even with their help it still would not work, but I found the problem!

CakePHP comes with a password salt feature that automatically salts and encrypts any index called "password" within an array. The problem was that the previous passwords in the database were not encrypted with a salt, so hence the passwords never matched! Once I made the Cake salt empty, it worked in all its glory. I will be posting up a tutorial this week on how to use the Auth Component, for anyone who was as lost as me trying to get it working.
Related Entries:

1 Comments

10 / 2 = ?
Allowed: [code] [b] [i] [u]
  • Fabio
    Nov 13th 2009, 00:26
    1 You saved me a lot of time: thanks!