aboutsummaryrefslogtreecommitdiffstats
path: root/accounts
diff options
context:
space:
mode:
authorAndrea Lepori <alepori@student.ethz.ch>2022-09-13 19:49:46 +0200
committerAndrea Lepori <alepori@student.ethz.ch>2022-09-13 19:49:46 +0200
commit4fcf257ad37fad25db594c366dfbcf93ab3bf317 (patch)
tree193d998899028130a9f82e9b58a2e01dfa8de1be /accounts
parentpermit multiple documents of the same type (diff)
downloadscout-subs-4fcf257ad37fad25db594c366dfbcf93ab3bf317.tar.gz
scout-subs-4fcf257ad37fad25db594c366dfbcf93ab3bf317.zip
remove unused/useless code
Diffstat (limited to 'accounts')
-rw-r--r--accounts/views.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/accounts/views.py b/accounts/views.py
index 22e287e..959fa28 100644
--- a/accounts/views.py
+++ b/accounts/views.py
@@ -44,7 +44,7 @@ MIDATA_ENABLED = settings.OAUTH_ENABLED
# override to remove help text
class RegisterForm(UserCreationForm):
def __init__(self, *args, **kwargs):
- super(RegisterForm, self).__init__(*args, **kwargs)
+ super(UserCreationForm, self).__init__(*args, **kwargs)
for fieldname in ['username', 'password1', 'password2']:
self.fields[fieldname].help_text = None
@@ -119,7 +119,6 @@ class CustomLoginView(LoginView):
# check if user has a cookie saved
response = HttpResponseRedirect("/")
- sessions = dict()
# no cookie
if "user_switcher" not in request.COOKIES:
return super(CustomLoginView, self).get(request, *args, **kwargs)