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:
@@ -148,6 +148,11 @@ class LoginFormTest(TestCase):
|
||||
response = self.client.get('/control/')
|
||||
assert b'hallo@example.org' in response.content
|
||||
|
||||
def test_custom_get_next_url(self):
|
||||
response = self.client.get('/control/login?state=/control/events/', HTTP_X_LOGIN_EMAIL='hallo@example.org')
|
||||
self.assertEqual(response.status_code, 302)
|
||||
self.assertIn('/control/events/', response['Location'])
|
||||
|
||||
|
||||
class RegistrationFormTest(TestCase):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user