Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added auto login to VerifyUserEmailView & tests. Still needs work, do not merge. #157

Closed
wants to merge 1 commit into from

Conversation

SemVerTsar
Copy link
Contributor

@SemVerTsar SemVerTsar commented Jul 29, 2016

@kevinetienne here's the progress so far.

Still needs work, do not merge.
@coveralls
Copy link

coveralls commented Jul 29, 2016

Coverage Status

Coverage remained the same at 100.0% when pulling eca0776 on auto-login-from-verify into 7a7b57c on master.


request = self.create_request('get', auth=False)
view = self.view_class.as_view()
response = view(request, token=token)
self.assertEqual(response.status_code, 302)
self.assertEqual(response.url, '/accounts/login/?next=/')

user = VerifyEmailUser.objects.get(pk=user.pk)
user = VerifyEmailUser.objects.get(pk=self.user.pk)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

self.user.refresh_from_db()

@SemVerTsar SemVerTsar closed this Apr 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants