Hi Massimo,
Upgraded to 1.96.3 and auth.settings.login_onaccept
this statement does not work anymore...
auth.settings.login_onaccept = lambda form: \
form.vars.update(dict(last_login=request.now))
form is None
The code around line 1650 in tools.py seems to call callback with
form=None and then with form=Auth()?
self.user = user
callback(onaccept,None)
session.flash = self.messages.logged_in
if log and self.user:
self.log_event(log % self.user)
# how to continue
if self.settings.login_form == self:
if accepted_form:
callback(onaccept,form)
if isinstance(next, (list, tuple)):
Ciao,
michele