Isn't it better to use a class constant than a string?
It seems more robust and less messy from the point of view of testing
for equality.... 'post' !== 'POST'
On 7 Oct 2008, at 12:18, Cédric Sadai wrote:
>
> BTW, isn't it $request->isMethod(sfRequest::POST) ?
>
> Since the 1.1, you can do the $request->isMethod('post')
> ;)
>
> On Oct 7, 11:54 am, Lee Bolding <[EMAIL PROTECTED]> wrote:
>> Symfony 1.4?
>>
>> If it's a sporadic error, I'd check your data - maybe the encryption
>> type for the passwords has changed? or the salt? so newly added users
>> will authenticate OK, but existing users won't.
>>
>> BTW, isn't it $request->isMethod(sfRequest::POST) ?
>>
>> On 7 Oct 2008, at 06:26, Cindy Cullen wrote:
>>
>>
>>
>>> I've recently upgraded to symfony 1.4. I've installed the latest
>>> sfGuardUserPlugin.
>>
>>> Now, none of my users will authenticate. Actually, some of them
>>> authenticate occasionally. It seems to be sporadic and I'm having a
>>> hard time figuring it out.
>>
>>> It appears that the $request in BasesfGuardAuthActions.class.php is
>>> set to GET instead of POST even though I'm using this in my
>>> template:
>>
>>> <form action="<?php echo url_for('@sf_guard_signin') ?>"
>>> method="post">
>>> <table>
>>> <?php echo $form ?>
>>> </table>
>>
>>> <input type="submit" value="sign in" />
>>> <a href="<?php echo url_for('@sf_guard_password') ?>">Forgot your
>>> password?</a>
>>> </form>
>>
>>> Users that I know are in the database are not getting authenticated.
>>
>>> Earlier, I was getting past that problem, but the validation was not
>>> passing even though I know that it should have.
>>
>>> Any help?
>>
>>> Thanks,
>>
>>> Cindy
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" 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/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---