Great! Grazie mille Massimo!
On 13 avr, 15:21, mdipierro <[email protected]> wrote: > Have you tried? > > In the index action do not require login and in the index view > {{=auth.login()}} > > Massimo > > On Apr 13, 6:58 am, Rohan <[email protected]> wrote: > > > anyway to customize login form? > > > from page source i see form with table inside but no ids. > > > I have vague idea about it can be done using form.widget or > > form.custom or something like this > > > Thanks > > > On Apr 9, 7:52 pm, Thadeus Burgess <[email protected]> wrote: > > > > From any controller. > > > > return dict(auth_form=auth()) > > > > Then you can just > > > > {{=auth_form}} in your controllers view. > > > > -Thadeus > > > > On Fri, Apr 9, 2010 at 7:19 AM, Rohan <[email protected]> wrote: > > > > Thanks Yarko, > > > > > I don't want to use auth.requires_login() to index function as it will > > > > lead the user to login page. > > > > >> another is to point auth() to get > > > >> login form / action from your more involved controller function, which > > > >> also has your home page (and login form, of course). > > > > > Can you please elaborate on this one? How can I point auth() to get > > > > info from my custom login form on my home page? > > > > > Thanks > > > > > On Apr 9, 5:11 pm, Yarko Tymciurak <[email protected]> > > > > wrote: > > > >> On Apr 9, 5:46 am, Rohan <[email protected]> wrote: > > > > >> > Hi All, > > > > >> > I am a newbie with web2py. Basically I want to by-pass the user's > > > >> > visit to user/login page. My home page will have the login fields > > > >> > like > > > >> > twitter and I am planning to collect username/email and password from > > > >> > login screen and pass it to web2py's default authentication service > > > >> > for verification. On correct login, user should be navigated to index > > > >> > page like normal. Any pointers? > > > > >> One way to think of what you asked to do is this: > > > > >> - an index page that requires login > > > >> - another page with a place to login, if not logged in > > > > >> A simple way to do this is to add the "auth.requires_login()" > > > >> decorator to your index controller function, which will force a login > > > >> call. There are several ways you can manage how this looks: one is > > > >> by customizing the user.html page in views/default to be what you are > > > >> referring to as your Home Page; another is to point auth() to get > > > >> login form / action from your more involved controller function, which > > > >> also has your home page (and login form, of course). > > > > >> See more athttp://www.web2py.com/book/default/section/8/1?search=login > > > > >> Regards, > > > >> - Yarko > > > > >> > Also Is there anyway to customize the look and feel of default login > > > >> > screen generated by web2py? > > > > >> > Thanks > > > > > -- > > > > To unsubscribe, reply using "remove me" as the subject.

