add account deletion
This commit is contained in:
20
app/templates/users/delete_confirm.html
Normal file
20
app/templates/users/delete_confirm.html
Normal file
@@ -0,0 +1,20 @@
|
||||
{%- from 'common/macros.html' import subheader -%}
|
||||
{%- extends 'base.html' -%}
|
||||
{%- block title -%}account deletion confirmation{%- endblock -%}
|
||||
{%- block content -%}
|
||||
{%- set sub -%}
|
||||
<a href="{{url_for('users.settings', username=get_active_user().username)}}">← Back to settings</a>
|
||||
{%- endset -%}
|
||||
{{- subheader('Confirm account deletion', sub) -}}
|
||||
<div class="plank">
|
||||
<form class="full-width" method="POST">
|
||||
<p>Are you sure you want to delete your account on {{ config.SITE_NAME }}? <strong>This action is irreversible.</strong> Your posts and threads will remain accessible to preserve history but will be de-personalized, showing up as authored by a system user. Posts that @mention you will also mention the system user instead.</p>
|
||||
<p>If you wish for any and all content relating to you to be removed, you will have to <a href="{{url_for('guides.contact')}}" target="_blank">contact {{ config.SITE_NAME }}'s administrators separately.</a></p>
|
||||
<p>If you are sure, please confirm your current password below.</p>
|
||||
<label for="password">Confirm password</label>
|
||||
{{csrf_input() | safe}}
|
||||
<input type="password" id="password" name="password" required autocomplete="current-password">
|
||||
<input type="submit" class="critical" value="Permanently delete account">
|
||||
</form>
|
||||
</div>
|
||||
{%- endblock -%}
|
||||
@@ -77,4 +77,8 @@
|
||||
<div>If badges fail to load, make sure JS is enabled.</div>
|
||||
</fieldset>
|
||||
{%- endif -%}
|
||||
<fieldset class="plank">
|
||||
<legend>Disown & Delete account</legend>
|
||||
<a class="linkbutton critical" href="{{url_for('users.delete_confirm', username=user.username)}}">Delete account</a>
|
||||
</fieldset>
|
||||
{%- endblock -%}
|
||||
|
||||
@@ -70,10 +70,12 @@
|
||||
{%- endfor -%}
|
||||
</div>
|
||||
{%- endif -%}
|
||||
{#
|
||||
<fieldset class="plank secondary-bg minimal even no-shadow">
|
||||
<legend>About me</legend>
|
||||
<p>stub</p>
|
||||
</fieldset>
|
||||
#}
|
||||
{%- if target_user.signature_rendered -%}
|
||||
<fieldset class="plank secondary-bg minimal even no-shadow">
|
||||
<legend>Signature</legend>
|
||||
|
||||
Reference in New Issue
Block a user