From e9e61cbca4f57c8ebad8b5b3505fdc2e2f093a9f Mon Sep 17 00:00:00 2001 From: mdipierro Date: Mon, 14 Mar 2016 12:27:37 -0500 Subject: [PATCH] fixed #1213, custom password field name --- gluon/packages/dal | 2 +- gluon/tools.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gluon/packages/dal b/gluon/packages/dal index 4b37722a..20b87f59 160000 --- a/gluon/packages/dal +++ b/gluon/packages/dal @@ -1 +1 @@ -Subproject commit 4b37722a227490d2249ba1a4648fb89498566158 +Subproject commit 20b87f59be3f3638e3b2e179be1f68586df75f33 diff --git a/gluon/tools.py b/gluon/tools.py index e0edf878..38e5892e 100644 --- a/gluon/tools.py +++ b/gluon/tools.py @@ -3297,7 +3297,7 @@ class Auth(object): 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] - k = self.settings.register_fields.index("password") + k = self.settings.register_fields.index(passfield) self.settings.register_fields.insert(k+1, "password_two") extra_fields = [ Field("password_two", "password",