templates/me.html (view raw)
1{{template "header" .}}
2<h1>My Account</h1>
3{{template "nav.html" .}}
4<br>
5<form action="/me" method="post">
6 <div>
7 <label for="username">Username</label><br>
8 <em >Note: renaming your account will cause links to your pages to break</em>
9 <input
10 id="username"
11 name="username"
12 size="32"
13 type="text"
14 value="{{.AuthUser.Username}}"
15 />
16 </div>
17 <div>
18 <label for="email">Email</label><br>
19 <input id="email" name="email" size="32" type="text" value="{{.MyUser.Email}}" />
20 </div>
21 <div>
22 <details>
23 <summary><label for="domain">Custom domain</label></summary>
24 <em>For more information on setting up a custom domain, see <a href="https://admin.flounder.online/custom-domains.gmi">Custom Domains</a></em>
25 <input id="domain" name="domain" size="32" type="text" value="{{.MyUser.Domain}}"/>
26 </details>
27 </div>
28 <div class="error">{{ range .Errors}}{{.}}<br>{{end}} </div>
29 <div>
30 <input
31 class="button"
32 id="submit"
33 name="submit"
34 type="submit"
35 value="Save"
36 />
37 </div>
38</form>
39<br>
40<a href="https://www.buymeacoffee.com/alexwennerberg">Become a Flounder Gold member</a> (This won't add any features but will help me maintain the site)</a>
41<br>
42<a href="/reset-password">Reset password</a>
43<p><a href="/my_site/flounder-archive.zip">🗄️ Download my site archive (.zip)</a></p>
44<details>
45 <summary>Delete Account</summary>
46 <form action="/delete-account" method="POST">
47<label for="validate-delete">Type in your username to delete your account:</label>
48<input id="validate-delete" name="validate-delete" size="32" type="text" value="" />
49<input
50 class="button delete"
51 type="submit"
52 value="Delete account"
53 onclick="return confirm('Are you SURE you want to delete your account and all your files?');"
54/>
55</form>
56</details>
57{{template "footer" .}}