fixed issue 2001, thanks Anthony
This commit is contained in:
@@ -1 +1 @@
|
||||
Version 2.10.0-beta+timestamp.2014.10.16.15.58.50
|
||||
Version 2.9.12-beta+timestamp.2015.01.12.20.38.57
|
||||
|
||||
+3
-2
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user