fixed issue 2001, thanks Anthony

This commit is contained in:
mdipierro committed 2015-01-12 20:39:14 -06:00
1 parent 2af5e02c5f
commit b872cced33
2 files changed
+4 -3

No files matched your search

+3 -2
View File
@@ -1258,7 +1258,8 @@ class Auth(object):
def __init__(self, environment=None, db=None, mailer=True,
hmac_key=None, controller='default', function='user',
cas_provider=None, signature=True, secure=False,
csrf_prevention=True, propagate_extension=None):
csrf_prevention=True, propagate_extension=None,
url_index=None):
## next two lines for backward compatibility
if not db and environment and isinstance(environment, DAL):
@@ -1295,7 +1296,7 @@ class Auth(object):
del session.auth
# ## what happens after login?
url_index = URL(controller, 'index')
url_index = url_index or URL(controller, 'index')
url_login = URL(controller, function, args='login',
extension = propagate_extension)
# ## what happens after registration?