Uploader

An all around general purpose file uploader for CakePHP. Packaged as a stand alone plugin with file validation, file scanning and support for a wide range of basic mime types.

Debugging the CakePHP Auth Component

Wednesday, December 10th 2008, 2:46am
Topics: CakePHP, Resources
Tags: CakePHP, Auth, Component
Comments: 2
Permalink - Tinylink

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:

2 Comments

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