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="/reset-password">Reset password</a>
41<p><a href="/my_site/flounder-archive.zip">🗄️ Download my site archive (.zip)</a></p>
42<details>
43 <summary>Delete Account</summary>
44 <form action="/delete-account" method="POST">
45<label for="validate-delete">Type in your username to delete your account:</label>
46<input id="validate-delete" name="validate-delete" size="32" type="text" value="" />
47<input
48 class="button delete"
49 type="submit"
50 value="Delete account"
51 onclick="return confirm('Are you SURE you want to delete your account and all your files?');"
52/>
53</form>
54</details>
55{{template "footer" .}}