Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
Added language in 'activate' url
Browse files Browse the repository at this point in the history
  • Loading branch information
reinout committed Oct 7, 2016
1 parent 3f602cd commit 8c3579a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lizard_auth_server/tests/test_views_api_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ def setUp(self):
'lizard_auth_server.api_v2.activate-and-set-password',
kwargs={'user_id': self.user.id,
'sso_key': key,
'language': 'en',
'message': signed_message})

def test_get_smoke(self):
Expand Down
1 change: 1 addition & 0 deletions lizard_auth_server/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ def check_settings():
url(r'^api2/activate/' +
'(?P<user_id>[^/]+)/' +
'(?P<sso_key>[^/]+)/' +
'(?P<language>[^/]+)/' +
'(?P<message>[^/]+)$',
views_api_v2.ActivateAndSetPasswordView.as_view(),
name='lizard_auth_server.api_v2.activate-and-set-password'),
Expand Down
1 change: 1 addition & 0 deletions lizard_auth_server/views_api_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,7 @@ def create_and_mail_user(self, username, first_name, last_name, email,
reverse('lizard_auth_server.api_v2.activate-and-set-password',
kwargs={'user_id': user.id,
'sso_key': key,
'language': language,
'message': signed_message}))

translation.activate(language)
Expand Down

0 comments on commit 8c3579a

Please sign in to comment.