summaryrefslogtreecommitdiffstats
path: root/users/views/auth.py
diff options
context:
space:
mode:
authorAndrew Godwin2022-11-05 14:17:27 -0600
committerAndrew Godwin2022-11-05 14:17:27 -0600
commitd77dcf62b4005a0f36ef2fa7ba6d3651d2ef38d7 (patch)
treedd356a933b8179a22e5da6e938acd96a175ac0d6 /users/views/auth.py
downloadtakahe-d77dcf62b4005a0f36ef2fa7ba6d3651d2ef38d7.tar.gz
takahe-d77dcf62b4005a0f36ef2fa7ba6d3651d2ef38d7.tar.bz2
takahe-d77dcf62b4005a0f36ef2fa7ba6d3651d2ef38d7.zip
Initial commit (users and statuses)
Diffstat (limited to 'users/views/auth.py')
-rw-r--r--users/views/auth.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/users/views/auth.py b/users/views/auth.py
new file mode 100644
index 0000000..f9e6ce1
--- /dev/null
+++ b/users/views/auth.py
@@ -0,0 +1,15 @@
+from django.contrib.auth.forms import AuthenticationForm
+from django.contrib.auth.views import LoginView, LogoutView
+
+from core.forms import FormHelper
+
+
+class Login(LoginView):
+ class form_class(AuthenticationForm):
+ helper = FormHelper(submit_text="Login")
+
+ template_name = "auth/login.html"
+
+
+class Logout(LogoutView):
+ pass