Switch to django-user-accounts based account management

This commit is contained in:
Ben Sturmfels 2023-04-20 15:42:44 +10:00
parent 31e11c5350
commit 2848db468e
Signed by: bsturmfels
GPG key ID: 023C05E2C9C068F0
4 changed files with 1 additions and 64 deletions

View file

@ -1,19 +0,0 @@
{% extends "account/base.html" %}
{% load i18n %}
{% block body_class %}account account-delete{% endblock %}
{% block head_title %}{% trans "Delete Account" %}{% endblock %}
{% block content %}
<h1>{% trans "Delete Account" %}</h1>
<p>{% blocktrans %}If you go ahead and delete your account, your information will be <b>expunged within {{ ACCOUNT_DELETION_EXPUNGE_HOURS }} hours</b>.{% endblocktrans %}</p>
<form method="post" action="{% url "account_delete" %}" autocapitalize="off">
{% csrf_token %}
<button type="submit" class="btn btn-danger">{% trans "Delete My Account" %}</button>
</form>
{% endblock %}

View file

@ -1,23 +0,0 @@
{% extends "account/base.html" %}
{% load i18n %}
{% load bootstrap %}
{% block body_class %}account account-password{% endblock %}
{% block head_title %}{% trans "Change password" %}{% endblock %}
{% block content %}
<div class="row">
<div class="col-md-5">
<form method="POST" action="">
<legend>{% trans "Change password" %}</legend>
<fieldset>
{% csrf_token %}
{{ form|bootstrap }}
<button type="submit" class="btn btn-primary">{% trans "Save" %}</button>
</fieldset>
</form>
</div>
</div>
{% endblock %}

View file

@ -1,21 +0,0 @@
{% extends "account/base.html" %}
{% load i18n %}
{% load bootstrap %}
{% block body_class %}account account-settings{% endblock %}
{% block head_title %}{% trans "Account" %}{% endblock %}
{% block content %}
<div class="row">
<div class="col-md-5">
<form method="POST" action="{% url "account_settings" %}">
<legend>{% trans "Account" %}</legend>
{% csrf_token %}
{{ form|bootstrap }}
<button class="btn btn-primary" type="submit">{% trans "Save" %}</button>
</form>
</div>
</div>
{% endblock %}

View file

@ -72,7 +72,7 @@
<h3>Account Management</h3>
<p>If you would like to change your registered email address or password, you can use our self-service account management portal</p>
<div>
<a class="btn btn-primary" role="button" href="https://login.linux.conf.au/manage/">Account Management</a>
<a class="btn btn-primary" role="button" href="{% url "account_settings" %}">Account Management</a>
</div>
</div>
</div>