summaryrefslogtreecommitdiffstats
path: root/takahe/urls.py
diff options
context:
space:
mode:
authorAndrew Godwin2022-11-17 19:16:34 -0700
committerAndrew Godwin2022-11-17 19:16:34 -0700
commit6adfdbabe0d44c17f32abc9d48a6e252e2a0792e (patch)
tree6644c5eeab7970a9f9b8d9540b7ebe28cc499331 /takahe/urls.py
parent2a3690d1c148da5dd799052403ba7290e1fb7de0 (diff)
downloadtakahe-6adfdbabe0d44c17f32abc9d48a6e252e2a0792e.tar.gz
takahe-6adfdbabe0d44c17f32abc9d48a6e252e2a0792e.tar.bz2
takahe-6adfdbabe0d44c17f32abc9d48a6e252e2a0792e.zip
Add signup and password reset
Diffstat (limited to 'takahe/urls.py')
-rw-r--r--takahe/urls.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/takahe/urls.py b/takahe/urls.py
index 0b23d7d..5c0b182 100644
--- a/takahe/urls.py
+++ b/takahe/urls.py
@@ -82,8 +82,10 @@ urlpatterns = [
path("@<handle>/posts/<int:post_id>/boost/", posts.Boost.as_view()),
path("@<handle>/posts/<int:post_id>/unboost/", posts.Boost.as_view(undo=True)),
# Authentication
- path("auth/login/", auth.Login.as_view()),
- path("auth/logout/", auth.Logout.as_view()),
+ path("auth/login/", auth.Login.as_view(), name="login"),
+ path("auth/logout/", auth.Logout.as_view(), name="logout"),
+ path("auth/signup/", auth.Signup.as_view(), name="signup"),
+ path("auth/reset/<token>/", auth.Reset.as_view(), name="password_reset"),
# Identity selection
path("@<handle>/activate/", identity.ActivateIdentity.as_view()),
path("identity/select/", identity.SelectIdentity.as_view()),