You are asking to make a guess about your code.

Coding from scratch I would do this:

auth=Auth(db)
auth.settings.extra_field['auth_user']=[Field('phone_number',default=None)]
auth.define_tables()

if auth.user and not auth.user.phone_number:
    session.flash='we need your phone number'
    redirect(URL('user/profile')

def user():
    if request.args(0)=='register':
        db.auth.user.phone_number.writable=False
        db.auth.user.phone_number.readable=False
    return dict(form=auth())

On Nov 29, 10:41 am, Constantine Vasil <[email protected]> wrote:
> Here is a better description for what I want to accomplish.
>
> Basically the business logic is this:
> I need a quick registration and then redirection to a form with
> option to enter more information.
>
> 1) Register with the minimum requirements - email address/password
> 2) Redirect to My Info form at /myinfo where I have
> form.process(formname='myinfo').accepted
>
> Registration is OK, redirection is OK, but I don't see /myinfo
> in the browser address, it stays as it is the former page link
> before redirection. So when I hit Submit after form filling on /myinfo
> from the logs I see form.process(formname='myinfo').accepted is not hit
> at all.

Reply via email to