Re: [web2py] Re: SQLForm + auth.register OR auth.login

2013-03-25 Thread Marian
I have a model defined like that. There is a reference to the build in auth user. The requirement is to create such submission via an unsecured controller and to register or login on the same page in one step. db.define_table( 'submission', Field('title', requires = IS_NOT_EMPTY()),

[web2py] Re: SQLForm + auth.register OR auth.login

2013-03-18 Thread Massimo Di Pierro
I do not understand. :-( On Friday, 15 March 2013 10:17:50 UTC-5, Marian wrote: I've stuck on this for a while. I need one page where I can create a submission with image uploads etc. and a required reference to auth.user. If the user is logged in it is quite simple but you should create a

Re: [web2py] Re: SQLForm + auth.register OR auth.login

2013-03-18 Thread Michele Comitini
you can make the view where you have the upload form with 2 buttons login and register pointing to default/user/login and default/user/register {{=A('LOGIN', _class='btn', _href=URL('default', 'user', args=['login']))}} If you want to have the registration or login form in the same page, it is