I responded to your ticket: https://trac.cakephp.org/ticket/2783

On Jun 17, 10:15 pm, Ketan Patel <[EMAIL PROTECTED]> wrote:
> I have made a request for enhancements to Security Component 
> athttps://trac.cakephp.org/ticket/2783... The details are below and I
> would like some open discussion on this enhancements from bakers.
>
> Ticket Details:
>
> With security component, if one ever wants to use requirePost and
> requireAuth, then its implementation is not quite straight forward and
> requires bit of code change to make it work.
>
> Say for an action 'register' in controller 'Users', I want to use
> requireAuth and requirePost. Based on current implementation, I have
> to make a post request to the 'register' action for a user to view
> that page. This involves change and is a bit painful to implement. In
> reality, one would never want to check whether the request is Post or
> Get for initial view. It is only important when the form is submitted
> to that action. Same goes with requireAuth.
>
> What I would really like to see is that, the initial visit to the
> 'register' action should not check for the requirePost or requireAuth
> but only check when the form is submitted.
>
> I have modified the code so that it checks if there is any
> '$controller->data' then the requirePost and requireAuth is checked,
> otherwise it is by-passed.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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