Updated account

This commit is contained in:
Tracker-Friendly 2023-11-20 18:05:54 +00:00
parent c7d9b24aa6
commit 587babb869
2 changed files with 5 additions and 4 deletions

View File

@ -13,11 +13,12 @@
<div class="content"> <div class="content">
<h1>Change your password</h1> <h1>Change your password</h1>
<br> <br>
<form method="POST" action="/account/passwordapi"> <form method="POST" action="/account/changeapi">
<input type="hidden" name="email" value="{{ user_email }}"> <input type="hidden" name="email" style="display: inline;" value="{{ user_email }}">
<input type="hidden" name="passwordhash" value="{{ password_hash }}">
<input name="password"> <input name="password">
<button onclick="location.href = '/account';">Cancel</button>
<input type="submit" value="Confirm"> <input type="submit" value="Confirm">
<button onclick="location.href = '/account';">Cancel</button>
</div> </div>
<style type="text/css"></style> <style type="text/css"></style>
</body></html> </body></html>

View File

@ -14,10 +14,10 @@
<h1>Account management</h1> <h1>Account management</h1>
<p1>{{ user_email }}</p1> <p1>{{ user_email }}</p1>
<br> <br>
<br>
<button onclick="location.href = '/account/changepass';">Change Password</button> <button onclick="location.href = '/account/changepass';">Change Password</button>
<button onclick="location.href = '/account/deleteacct';">Delete Account</button> <button onclick="location.href = '/account/deleteacct';">Delete Account</button>
<br> <br>
<br>
<button onclick="location.href = '/account/logout';">Logout</button> <button onclick="location.href = '/account/logout';">Logout</button>
</div> </div>
<style type="text/css"></style> <style type="text/css"></style>