Compare commits
No commits in common. "40fa26e621d3bb113b7777ae542cbe49605b7b34" and "1f87da045f84e06cf55e5a1c8a72c4539cf4c863" have entirely different histories.
40fa26e621
...
1f87da045f
4 changed files with 3 additions and 48 deletions
|
|
@ -17,22 +17,9 @@ Including another URLconf
|
|||
|
||||
from django.contrib import admin
|
||||
from django.urls import path, include
|
||||
from django.contrib.auth import views as auth_views
|
||||
|
||||
urlpatterns = [
|
||||
path("", include("webui.urls")),
|
||||
path("admin/", admin.site.urls),
|
||||
# only import the views from the auth package that we actually use
|
||||
path("accounts/login/", auth_views.LoginView.as_view(), name="login"),
|
||||
path("accounts/logout/", auth_views.LogoutView.as_view(), name="logout"),
|
||||
path(
|
||||
"accounts/password_change/",
|
||||
auth_views.PasswordChangeView.as_view(),
|
||||
name="password_change",
|
||||
),
|
||||
path(
|
||||
"accounts/password_change/done/",
|
||||
auth_views.PasswordChangeDoneView.as_view(),
|
||||
name="password_change_done",
|
||||
),
|
||||
path("accounts/", include("django.contrib.auth.urls"))
|
||||
]
|
||||
|
|
|
|||
|
|
@ -2,9 +2,6 @@
|
|||
{% load crispy_forms_tags %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Delete your Account</h1>
|
||||
|
||||
<section class="section">
|
||||
|
||||
{% if next %}
|
||||
{% if user.is_authenticated %}
|
||||
|
|
@ -21,6 +18,5 @@
|
|||
<input class="button is-danger" type="submit" value="Delete Account">
|
||||
<input type="hidden" name="next" value="{{ next }}">
|
||||
</form>
|
||||
</section>
|
||||
|
||||
{% endblock %}
|
||||
|
|
|
|||
|
|
@ -1,11 +0,0 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<h1>Password change successful</h1>
|
||||
|
||||
<section class="section">
|
||||
Your password was changed successfully.
|
||||
</section>
|
||||
|
||||
{% endblock %}
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
{% extends "base.html" %}
|
||||
{% load crispy_forms_tags %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<h1>Change your password</h1>
|
||||
|
||||
<section class="section">
|
||||
|
||||
<form method="post" action="{% url 'password_change' %}">
|
||||
{% csrf_token %}
|
||||
{{ form|crispy }}
|
||||
<input class="button is-warning" type="submit" value="Change Password">
|
||||
</form>
|
||||
</section>
|
||||
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue