From 05b4cb59b0b28d92ded07e6d34a62abc2fd35131 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Tue, 12 Jan 2021 08:19:08 -0800 Subject: [PATCH] Adds registration view --- bookwyrm/templates/discover.html | 2 +- bookwyrm/templates/invite.html | 2 +- bookwyrm/templates/layout.html | 4 +-- bookwyrm/templates/login.html | 2 +- bookwyrm/urls.py | 5 +-- bookwyrm/view_actions.py | 51 -------------------------- bookwyrm/views/__init__.py | 2 +- bookwyrm/views/authentication.py | 61 ++++++++++++++++++++++++++++++-- 8 files changed, 68 insertions(+), 61 deletions(-) diff --git a/bookwyrm/templates/discover.html b/bookwyrm/templates/discover.html index 79e31f56..2ff091f0 100644 --- a/bookwyrm/templates/discover.html +++ b/bookwyrm/templates/discover.html @@ -16,7 +16,7 @@
{% if site.allow_registration %}

Join {{ site.name }}

-
+ {% include 'snippets/register_form.html' %}
{% else %} diff --git a/bookwyrm/templates/invite.html b/bookwyrm/templates/invite.html index 458ce3df..3345424c 100644 --- a/bookwyrm/templates/invite.html +++ b/bookwyrm/templates/invite.html @@ -7,7 +7,7 @@ {% if valid %}

Create an Account

-
+ {% include 'snippets/register_form.html' %}
diff --git a/bookwyrm/templates/layout.html b/bookwyrm/templates/layout.html index fe448585..edd43f97 100644 --- a/bookwyrm/templates/layout.html +++ b/bookwyrm/templates/layout.html @@ -122,10 +122,10 @@
{% else %}