when the user goes to /controller/secureform, assuming its not in the allowed list, the user will be automatically redirected to the login form... on successful login it will redirect them back to the secure form with the auth session filled in. You can of course do further checks if only a specific class of user should access the secure form.
Much nicer than having somebody fill in a form, and then force them to login.
If you absolutely must do it this way, have the form action on the secure form store the data in a session, redirect to the login form, and on successful login process the data from the session instead of from $this->data
On Mon, Sep 5, 2011 at 9:10 PM, WebbedIT <paul@webbedit.co.uk> wrote:
beinng shown a form that you fill in only to be presented with a "you
must login to submit this form" message. Hmmmm, no thanks.
Also if the data is to eventually be secure (i.e. encrypted) how is it
secure when sent from http?!?
@phpMagpie
On Sep 2, 10:50 am, euromark <dereurom...@googlemail.com> wrote:
> you should as a guideline always post a form to itself.
> therefore the same action can work with the posted data and afterwards
> redirect to the secure page
>
> On 1 Sep., 22:27, vinay <mailbox4vi...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Hi,
> > Looking for help on implementing requirement where user will see a
> > form even without logging in to the website. Once user submit the form
> > the data is posted to secured page, that' s why user is redirected to
> > login page.
> > How do I get the data posted by user because based on that I need to
> > show him next step once he logged in.
>
> > THanks,
> > Vinay
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment