I'm creating a registration page that allows for the possibility that
one user has created a partial record for another user. It looks like
this:

1. Some user creates a property and assigns a realtor.
2. The system creates a partial user record and sends an email to the
realtor to complete the user record if s/he cares to do so.
3. The realtor clicks a link in the email that brings them to the
registration page with an invite code that tells us who they are.

At this point, the realtor is at /users/register/<invite_code> and the
user registration form is displayed with known data prepopulated.
What's confusing me is that several fields are already marked invalid
as soon as the page is loaded. No data was submitted, no data
validated, no save action has taken place. Moreover, dumping $this-
>User->invalidFields() at the moment the request enters
UsersController::beforeFilter() shows that invalid fields exist.

If, at the end of the invited user code, I don't set $this->data to
the found user, I don't see the errors.

How is that possible? What have I done that's initiated validation
this early in the request? I'm using the Auth component, so I suspect
that this is involved somehow, but I haven't been able to track down
what it might be.

Any insight would be much appreciated. I've been staring at this for
_way_ too long.

Thank you.

-- 
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
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to