mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Make next url authentication backend dependent (#1609)
* Make next url authentication backend dependent * Rename authentication next_url to get_next_url. * Add test for custom authentication backend get_next_url. * Fix typo in docstring of authentication backend get_next_url.
This commit is contained in:
@@ -36,3 +36,8 @@ class TestRequestAuthBackend(BaseAuthBackend):
|
||||
email=request.headers['X-Login-Email'],
|
||||
auth_backend='test_request'
|
||||
)[0]
|
||||
|
||||
def get_next_url(self, request):
|
||||
if 'state' in request.GET:
|
||||
return request.GET.get('state')
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user