mirror of
https://github.com/Lynnesbian/FediBooks/
synced 2024-11-25 08:38:59 +00:00
initial work on account deletion
This commit is contained in:
parent
1d559d7118
commit
0f717a82bb
3 changed files with 49 additions and 5 deletions
36
app/templates/close_account.html
Normal file
36
app/templates/close_account.html
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title>FediBooks</title>
|
||||||
|
{% include 'imports.html' %}
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div class="container centred">
|
||||||
|
<h1 class="thin centred">Close your FediBooks account</h1>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{% include 'error.html' %}
|
||||||
|
|
||||||
|
<div class="container centred">
|
||||||
|
<form method='POST'>
|
||||||
|
<h2>
|
||||||
|
<i class="fas fa-user-slash" style="font-size:3em;"></i>
|
||||||
|
</h2>
|
||||||
|
<div class="container centred">
|
||||||
|
<p>Are you sure you want to <strong>permanently</strong> delete your account?</p>
|
||||||
|
<p>All of your FediBooks bots will stop working, but their accounts will remain open. You can delete them manually or repurpose them for something else.</p>
|
||||||
|
<p>If you're sure you want to delete your account, enter your password below and click "Close my account".</p>
|
||||||
|
<p>
|
||||||
|
<input type="password" placeholder="Password">
|
||||||
|
</p>
|
||||||
|
<a class="button btn-secondary" href="/"><i class="fas fa-times"></i> Cancel</a>
|
||||||
|
<button class="button btn-dangerous"><i class="fas fa-trash"></i> Close my account</button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{% include 'footer.html' %}
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -18,7 +18,7 @@
|
||||||
<form method="POST" class="full-width">
|
<form method="POST" class="full-width">
|
||||||
<div class="container light">
|
<div class="container light">
|
||||||
<h2 class="thin centred">Login settings</h2>
|
<h2 class="thin centred">Login settings</h2>
|
||||||
<p class="centred">Update your email and password here.</p>
|
<p class="centred">Update your email and password here, or close your account.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
@ -29,6 +29,10 @@
|
||||||
<label for="password" class="large">Password</label>
|
<label for="password" class="large">Password</label>
|
||||||
<input type="password" name="password"pattern=".{8,}" placeholder="Unchanged">
|
<input type="password" name="password"pattern=".{8,}" placeholder="Unchanged">
|
||||||
</div>
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<label for="delete" class="large">Delete account</label>
|
||||||
|
<a name="delete" class="button btn-dangerous" href="/delete"><i class="fas fa-trash"></i> Close account</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="container light">
|
<div class="container light">
|
||||||
<h2 class="thin centred">Contact settings</h2>
|
<h2 class="thin centred">Contact settings</h2>
|
||||||
|
|
|
@ -61,6 +61,10 @@ def show_signup_page():
|
||||||
def render_settings():
|
def render_settings():
|
||||||
return settings(mysql)
|
return settings(mysql)
|
||||||
|
|
||||||
|
@app.route("/delete")
|
||||||
|
def render_delete():
|
||||||
|
return render_template("close_account.html", error = session.pop('error', None))
|
||||||
|
|
||||||
@app.route("/bot/edit/<id>", methods = ['GET', 'POST'])
|
@app.route("/bot/edit/<id>", methods = ['GET', 'POST'])
|
||||||
def render_bot_edit(id):
|
def render_bot_edit(id):
|
||||||
return bot_edit(id, mysql)
|
return bot_edit(id, mysql)
|
||||||
|
|
Loading…
Reference in a new issue