The 2nd part of my explanation was so that if they forget it, but then
remember it they can still login.  It's an extra failsafe in case the
re-activation email gets lost in the shuffle.

On Nov 12, 4:48 pm, "Dave" <[email protected]> wrote:
> I am using auth so I like the idea of comparing the values that way.
>
> Not quite sure I follow the logic in the additional field for "forgot
> password". If they forgot their password they would not be logged in.
> My forgot function allows them to enter their email and if found will send a
> confirmation/reset token to that address when they click on the link it
> allows them to select a new password and login.
>
> All I am doing here is when a user is editing their profile if they change
> their email address I want to check before saving that if they did change
> the email an confirmation email get sent and they simply have to confirm it
> before being able to log back in.
>
> Will work with the Auth compare as it seems logical.
>
> Thanks,
>
> Dave
>
>
>
> -----Original Message-----
> From: BrendonKoz [mailto:[email protected]]
> Sent: November-12-09 4:48 PM
> To: CakePHP
> Subject: Re: If User changes info?
>
> If you're using the Auth Component, by default it stores all User field
> values in the user's session.  You could compare the session value with the
> submitted value in the beforeSave method.
>
> andrzejborkowski's suggestion could be better, however, depending on the
> instance.  If you're using a "forgot password" option, using a secondary
> field to store the new password (rather than overwriting the original
> instantly), it won't lock the user out until they activate the new password
> when checking the re-activation email.
>
> On Nov 12, 12:30 pm, "[email protected]"
> <[email protected]> wrote:
> > u should add `email_temp` field in users table and overwrite `email`
> > after click information email i this is best method..
>
> > On 12 Lis, 17:49, "Dave" <[email protected]> wrote:
>
> > > What is the best way to determine if a user changes a specific field
> > > when updating account?
>
> > > I want to suspend the account when a user changes their email
> > > address and send out a confirmation email that they will have to
> > > confirm the address. I could make a separate form but that seems
> > > like over kill to make a new form just for 1 field.
>
> > > I was thinking beforeSave() compare the new data field with the
> > > record if it matches no change so carry on....if its different then
> > > do what i need to do , send email...?
>
> > > Anyone have ideas? Simple approach?
>
> > > Thanks,
>
> > > Dave- Hide quoted text -
>
> > - Show quoted text -
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" 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 
> athttp://groups.google.com/group/cake-php?hl=.
>
> No virus found in this incoming message.
> Checked by AVG -www.avg.com
> Version: 9.0.707 / Virus Database: 270.14.60/2496 - Release Date: 11/12/09
> 04:08:00- Hide quoted text -
>
> - Show quoted text -

--

You received this message because you are subscribed to the Google Groups 
"CakePHP" 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=.


Reply via email to