Just to clarify for anyone else coming across this, the salt should be
prepended to the password, not appended.

On Sun, May 11, 2008 at 12:08 PM, Andras Kende <[EMAIL PROTECTED]> wrote:
>
>
>  Thank you, this worked beautifully:
>
>  ...... SET `password` = SHA1( 'SALTSTRINGpasswordstring' ) ..........
>
>
>
>
>
>  Andras Kende
>
>  http://www.kende.com
>
>
>
>
> On May 11, 11:11 am, aranworld <[EMAIL PROTECTED]> wrote:
>  > Maybe you didn't use the salt when setting the password value in the
>  > database?
>  >
>  > You have to do something like this:
>  >
>  > INSERT INTO `users` SET `password` =
>  > sha1( 'passwordstringSALTSTRING')
>  >
>  > On May 11, 12:10 am, Andras Kende <[EMAIL PROTECTED]> wrote:
>  >
>  >
>  >
>  > > Hello,
>  >
>  > > I was able to add 1.2 auth from the cookbook  
> (http://book.cakephp.org/view/172/authentication)
>  > > to my testapp but somehow only works for me if core.php :
>  > > Configure::write('Security.salt', '');  is set to empty...
>  >
>  > > What I'm missing here?
>  >
>  > > users table (sha1 pass)
>  > > username | password
>  > > testuser | 94cd166631d14dab533858b9b47e9584a2ff3f65
>  >
>  > > app_controller.php :
>  > > <?php
>  > > class AppController extends Controller {
>  > > var $components = array('Auth');}
>  >
>  > > ?>
>  >
>  > > Thank you,
>  >
>  > > Andras Kende
>  >
>  > >http://www.kende.com/- Hide quoted text -
>  >
>  > - Show quoted text -
>
>
>
>  >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to