{{=auth.navbar(user_identifier='%(email)s')}} This defaults to user_identifier='%(first_name)s' but you do not have a first name.
On Friday, 28 December 2012 01:10:34 UTC-6, Alec Taylor wrote: > > Thanks, but that also isn't working: `<type > 'exceptions.AttributeError'> 'Row' object has no attribute > 'first_name'` > > But I do get a different traceback, i.e., here: > > web2py\gluon\tools.py", line 1285, in navbar > user_identifier = user_identifier % self.user > > On Fri, Dec 28, 2012 at 5:41 PM, Bruno Rocha > <rocha...@gmail.com<javascript:>> > wrote: > > > > For the record: > > > > There is a problem on this line > > https://github.com/web2py/web2py/blob/master/gluon/tools.py#L1415 > > > > If you use auth.signature it will raise an error do I propose to change > it > > to: > > > > return '%s %s' % (user.get("first_name", "email"), user.get("last_name", > > "")) > > > > or some other check. > > > > -- > > > > > > > --