Private
Public Access
1
0

gdpr user delete and user deactivate functions

This commit is contained in:
Sander Roosendaal
2018-03-06 20:20:42 +01:00
parent e353b1cf1f
commit d80e7d8f04
8 changed files with 130 additions and 61 deletions

View File

@@ -31,6 +31,15 @@
<div class="grid_6 omega">
<p> To use rowsandall, you need to register and agree with the Terms of Service. </p>
<p> Registration is free. </p>
<p>Some of our advanced services only work if you give us your
(approximate) birth date, sex and weight category, with 72.5 kg the
bounday between heavies and lighties for men, and 59 kg for women.
</p>
<p>Also, we are restricting access to the site to 16 years and older
because of EU data protection regulations.</p>
</div>
{% endblock content %}

View File

@@ -216,7 +216,19 @@
<p>
<h2>GDPR - Data Protection</h2>
<div class="grid_2 suffix_4 alpha">
<a class="button gray small" href="/rowers/exportallworkouts">Download your data</a>
<p>
<a class="button gray small" href="/rowers/exportallworkouts">Download your data</a>
</p>
</div>
<div class="grid_2 suffix_4 alpha">
<p>
<a class="button gray small" href="/rowers/me/deactivate">Deactivate Account</a>
</p>
</div>
<div class="grid_2 suffix_4 alpha">
<p>
<a class="button red small" href="/rowers/me/delete">Delete Account</a>
</p>
</div>
</p>
</div>

View File

@@ -0,0 +1,22 @@
{% extends "base.html" %}
{% load staticfiles %}
{% load rowerfilters %}
{% block title %}Deactivate your account{% endblock %}
{% block content %}
<div class="grid_12">
<h2>Deactivate your account</h2>
<hr>
<p>Account deactivation is reversible. After you logout, you will not be
able to access your data any more, but the site admin can restore your
account.</p>
<form method="POST" class="padding">{% csrf_token %}
{{ user_form.as_p}}
{% csrf_token %}
<button class="btn btn-primary" type="submit" name="action">Confirm</button>
</form>
</div>
{% endblock %}

View File

@@ -0,0 +1,22 @@
{% extends "base.html" %}
{% load staticfiles %}
{% load rowerfilters %}
{% block title %}Delete your account{% endblock %}
{% block content %}
<div class="grid_12">
<h2>Delete your account</h2>
<hr>
<p><b>Warning: This will remove your account and all your data.
You will not be able to recover from this action. We cannot restore
your account</b></p>
<form method="POST" class="padding">{% csrf_token %}
{{ user_form.as_p}}
{% csrf_token %}
<button class="btn btn-primary" type="submit" name="action">Confirm</button>
</form>
</div>
{% endblock %}