Don't make SSHKeyCreateView with LoginRequiredMixin

This commit is contained in:
PCoder 2019-07-01 21:01:41 +05:30
parent 561178e473
commit 8efe978b23

View file

@ -3,7 +3,6 @@ import uuid
from django.conf import settings from django.conf import settings
from django.contrib import messages from django.contrib import messages
from django.contrib.auth import authenticate, login from django.contrib.auth import authenticate, login
from django.contrib.auth.mixins import LoginRequiredMixin
from django.contrib.auth.tokens import default_token_generator from django.contrib.auth.tokens import default_token_generator
from django.core.files.base import ContentFile from django.core.files.base import ContentFile
from django.core.urlresolvers import reverse_lazy from django.core.urlresolvers import reverse_lazy
@ -186,7 +185,7 @@ class PasswordResetConfirmViewMixin(FormView):
return self.form_invalid(form) return self.form_invalid(form)
class SSHKeyCreateView(LoginRequiredMixin, FormView): class SSHKeyCreateView(FormView):
form_class = UserHostingKeyForm form_class = UserHostingKeyForm
model = UserHostingKey model = UserHostingKey
template_name = 'hosting/user_key.html' template_name = 'hosting/user_key.html'