Admittedly I gave this post an awfully vague subject so hopefully it
won't be totally dismissed. Upon further investigation I found some
more details.

Simply put: my $this->Session->read('salt'); is always empty when
attemptLogin is called. If I do print_r($this->Session->read()); in
attemptLogin, I only have:

Array
(
[Config] => Array
(
[userAgent] => 7a98565405c4c8c1b17961f9f9edd2fd
[time] => 1200631921
[rand] => 52815838
)

)

But if I do the same print_r from the Users/login action I have:

Array
(
[Config] => Array
(
[userAgent] => 7a98565405c4c8c1b17961f9f9edd2fd
[time] => 1200631921
[rand] => 52815838
)

[salt] => 282191378
)

I'm very confused why the salt is disappearing... :( I basically did a
fresh install of the v0.3 files from bakery.cakephp.org and wanted to
get them all working as-is before customizing (to make sure there was
nothing in my project interfering, I grep'd the entire source tree for
references to 'salt' and only found the new dAuth ones). Obviously
this means "Credentials mismatch" is the only result attemptLogin ever
yields because it can never successfully compare the passwords. I'm
baffled!

Any pointers anyone might have?

Thanks,
-volve


On Jan 17, 10:47 pm, volve <[EMAIL PROTECTED]> wrote:
> Hey all,
>
> I'm trying to get dAuth v0.3 working but am constantly presented with
> "Login failed: Credentials mismatch.". I added a slew of debug output
> to the component and sure enough my password hash and the one
> submitted are completely different.
>
> Some log_debug output from a login attempt:
>
> 2008-01-17 22:37:57 Debug: dAuthComponent attemptLogin...
> 2008-01-17 22:37:57 Debug: clean host...
> 2008-01-17 22:37:57 Debug: username and password present...
> 2008-01-17 22:37:57 Debug: username found in database...
> 2008-01-17 22:37:57 Debug: clear text = false...
> 2008-01-17 22:37:57 Debug: password hash:
> [7025cd2543c0f3a446487c973a124d0b25daa753] submitted hash:
> [fcb55b0e784e713ec1116766ffac3e75a833bcda]
> 2008-01-17 22:37:57 Debug: hashed password compare failed...
>
> Thinking maybe it was some stale user accounts, I went through the
> dAuth Users/register action again and that was successful. I also
> checked my files for copy-n-paste whitespace that might cause header
> issues but couldn't find any.
>
> I realize I may be behind the times on implementing dAuth but I hope
> someone else has resolved this. :)
>
> Thanks!
> -volve
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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