This repository has been archived by the owner on Oct 22, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 403
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed username from activation URI.
IMPORTANT: When overriding templates, remove the username from the following templates: - userena/templates/userena/emails/activation_email_message.txt - userena/templates/userena/emails/confirmation_email_message_new.txt
- Loading branch information
Showing
10 changed files
with
36 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,8 +23,7 @@ def test_valid_activation(self): | |
'tos': 'on'}) | ||
user = User.objects.get(email='[email protected]') | ||
response = self.client.get(reverse('userena_activate', | ||
kwargs={'username': user.username, | ||
'activation_key': user.userena_signup.activation_key})) | ||
kwargs={'activation_key': user.userena_signup.activation_key})) | ||
self.assertRedirects(response, | ||
reverse('userena_profile_detail', kwargs={'username': user.username})) | ||
|
||
|
@@ -37,8 +36,7 @@ def test_invalid_activation(self): | |
""" | ||
response = self.client.get(reverse('userena_activate', | ||
kwargs={'username': 'john', | ||
'activation_key': 'fake'})) | ||
kwargs={'activation_key': 'fake'})) | ||
self.assertEqual(response.status_code, 200) | ||
self.assertTemplateUsed(response, | ||
'userena/activate_fail.html') | ||
|
@@ -50,8 +48,7 @@ def test_valid_confirmation(self): | |
user.userena_signup.change_email('[email protected]') | ||
|
||
response = self.client.get(reverse('userena_email_confirm', | ||
kwargs={'username': user.username, | ||
'confirmation_key': user.userena_signup.email_confirmation_key})) | ||
kwargs={'confirmation_key': user.userena_signup.email_confirmation_key})) | ||
|
||
self.assertRedirects(response, | ||
reverse('userena_email_confirm_complete', kwargs={'username': user.username})) | ||
|
@@ -62,8 +59,7 @@ def test_invalid_confirmation(self): | |
""" | ||
response = self.client.get(reverse('userena_email_confirm', | ||
kwargs={'username': 'john', | ||
'confirmation_key': 'WRONG'})) | ||
kwargs={'confirmation_key': 'WRONG'})) | ||
self.assertTemplateUsed(response, | ||
'userena/email_confirm_fail.html') | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You should really take a deep breath.