Re: two questions about Auth component
Thank you very much for your reply. I will try them out today.
On Apr 4, 12:34 am, Chris <theswimmingf...@gmail.com> wrote:
> I know for the first issue you must set the post data to null so that
> it doesn't post back that data to the user. Or maybe just set the
> password as null.
>
> for the second issue, I'm just thinking an idea nothing I've tried out
> and I'd actually want to see a better answer but, maybe you could set
> a hidden field to check if it's post again,unless there is an
> unknown,to me, isPostBack property or similar function in PHP like in
> ASP.NET, and then force redirect to else where.
>
> On Apr 3, 4:19 pm, Tan Cheng <davidtan...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Hi everyone,
>
> > I need help..., I am using the Auth component in cake, but I
> > encountered two issues so far and couldn't find good answers, shed me
> > some light please.
>
> > 1) Register issue:
>
> > I set up some validation rules for the password field in my user
> > model, so if the password user provided doesn't comply my rule, the
> > user will be redirected to the registration page with error message.
> > Everything is fine except that the password will still be displayed in
> > the password text field (with bullet points), and it's a very long row
> > of bullet points because of the encryption. I don't want the user see
> > the confusing long bullet points. How can I make the password field
> > empty??
>
> > 2) Reset password issue:
>
> > In my site, I allow user reset their password by typing the email in a
> > text box, then the script will generate an email with a link, the
> > users click on the link and they will be taken to a page to reset
> > their password.
>
> > The issue is when the user finished resetting the password, I redirect
> > the user to the login page. However, when the user logs in, because
> > the "Auth Component" always redirects you to the page where you were
> > linked to the login page (autoDirect is on), the user now will always
> > be redirected back to the "reset password" page.
>
> > So how can I make the user be redirected to another page (e,g.
> > homepage), after they have logged in. I don't want to turn the
> > "autoRedirect" off, because for most of the time, this is helpful.
>
> > Thanks thousand times for your patience reading my long post, any
> > implication will be really appreciated!!!
>
> > -David
--
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
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home