Skip to content

Commit

Permalink
Fix a copy and paste error.
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep committed Oct 26, 2016
1 parent bb14942 commit 3be2291
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Expand Up @@ -3,6 +3,12 @@
Changelog
#########

0.3.2 October 26, 2016
======================

* Fix an error when hitting the TwoFactorBackupTokens view as a non-anonymous
user.

0.3.1 October 5, 2016
=====================

Expand Down
2 changes: 1 addition & 1 deletion allauth_2fa/views.py
Expand Up @@ -143,7 +143,7 @@ def dispatch(self, request, *args, **kwargs):
if request.user.is_anonymous():
return redirect_to_login(self.request.get_full_path())

return super(TwoFactorRemove, self).dispatch(request, *args, **kwargs)
return super(TwoFactorBackupTokens, self).dispatch(request, *args, **kwargs)

def get_context_data(self, **kwargs):
context = super(TwoFactorBackupTokens, self).get_context_data(*kwargs)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -4,7 +4,7 @@

setup(
name="django-allauth-2fa",
version="0.3.1",
version="0.3.2",
packages=find_packages(),
install_requires=[
"django>=1.8",
Expand Down

0 comments on commit 3be2291

Please sign in to comment.