You can insert def index(): form = auth.login() if auth.user: message="welcome %s" % auth.user.first_name else: message = 'login please' return dict(form=form, message=message)
and in view: ... {{=form}} {{=message}} ... On Thursday, 26 December 2013 13:39:07 UTC-6, Unnikrishnan Patel wrote: > > Hi , i am new at web development with web2py , I want to add login or > signup form on the index page itself , i tried to go through the codes but > its quite tough to figure out , can anyone please help me with that? > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.