Turn on redirects for new_password

This is part of the work to make sure user is redirected
to the page they initially were meant to visit after
they sign in.
This commit is contained in:
Pea Tyczynska
2020-10-09 11:40:28 +01:00
parent b0db60e417
commit 1fc2bee42d
3 changed files with 13 additions and 6 deletions

View File

@@ -3646,9 +3646,9 @@ def mock_create_event(mocker):
return mocker.patch('app.events_api_client.create_event', side_effect=_add_event)
def url_for_endpoint_with_token(endpoint, token):
def url_for_endpoint_with_token(endpoint, token, next=None):
token = token.replace('%2E', '.')
return url_for(endpoint, token=token)
return url_for(endpoint, token=token, next=next)
@pytest.fixture