From b99fb7dedf9c9e96b9b0e7cda6e62bc164d2164d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonel=20C=C3=A2mara?= Date: Tue, 29 Sep 2015 00:21:01 +0100 Subject: [PATCH] Fixes #721 Fixes a bug where auth.wiki was not respecting the extra keyword argument --- gluon/tools.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gluon/tools.py b/gluon/tools.py index 9ff578d4..d0970ef5 100644 --- a/gluon/tools.py +++ b/gluon/tools.py @@ -2898,6 +2898,11 @@ class Auth(object): passfield = self.settings.password_field formstyle = self.settings.formstyle + try: # Make sure we have our original minimum length as other auth forms change it + table_user[passfield].requires[-1].min_length = self.settings.password_min_length + except: + pass + if self.settings.register_verify_password: if self.settings.register_fields is None: self.settings.register_fields = [f.name for f in table_user if f.writable] @@ -4212,6 +4217,7 @@ class Auth(object): function=function, groups=groups) else: + self._wiki.settings.extra = extra or {} self._wiki.env.update(env or {}) # if resolve is set to True, process request as wiki call