I have tried to use the "plugin_conditionalrecaptcha.py" together with
impersonate and I got

  File "....\gluon\tools.py", line 2687, in impersonate
    self.settings.login_onaccept(form)

In /gluon/tools.py, line 2685 I found:

 if self.settings.login_onaccept:
     form = Storage(dict(vars=self.user))
     self.settings.login_onaccept(form)

plugin_conditionalrecaptcha inserts something into login_onaccepts and
if this list is not empty,
impersonate tries to call a list. Maybe the code should be:

form = Storage(dict(vars=self.user))
for login in self.settings.login_onaccept:
    login(form)


It works for me, but I don't know if all cases are covered.

Regards, Martin

-- 



Reply via email to