fixed issue #789, callable next
This commit is contained in:
@@ -2361,6 +2361,8 @@ class Auth(object):
|
|||||||
if next is DEFAULT:
|
if next is DEFAULT:
|
||||||
# important for security
|
# important for security
|
||||||
next = settings.login_next
|
next = settings.login_next
|
||||||
|
if callable(next):
|
||||||
|
next = next()
|
||||||
user_next = snext
|
user_next = snext
|
||||||
if user_next:
|
if user_next:
|
||||||
external = user_next.split('://')
|
external = user_next.split('://')
|
||||||
|
|||||||
Reference in New Issue
Block a user