templates/me.html (view raw)
1{{template "header" .}}
2<h1>My Account</h1>
3{{template "nav.html" .}}
4<form action="/me" method="post">
5 <div>
6 <label for="username">Username</label><br>
7 <em>Note: renaming your account will cause links to your pages to break</em>
8 <input
9 id="username"
10 name="username"
11 size="32"
12 type="text"
13 value="{{.AuthUser.Username}}"
14 />
15 </div>
16 <div>
17 <label for="email">Email</label>
18 <input id="email" name="email" size="64" type="text" value="{{.Email}}" />
19 </div>
20 <div class="error">{{ range .Errors}}{{.}}<br>{{end}} </div>
21 <div>
22 <input
23 class="button"
24 id="submit"
25 name="submit"
26 type="submit"
27 value="Save"
28 />
29 </div>
30</form>
31<a href="/reset-password">Reset password</a>
32<p><a href="/my_site/flounder-archive.zip">🗄️ Download my site archive (.zip)</a></p>
33<details>
34 <summary>Delete Account</summary>
35 <form action="/delete-account" method="POST">
36<label for="validate-delete">Type in your username to delete your account:</label>
37<input id="validate-delete" name="validate-delete" size="32" type="text" value="" />
38<input
39 class="button delete"
40 type="submit"
41 value="Delete account"
42 onclick="return confirm('Are you SURE you want to delete your account and all your files?');"
43/>
44</details>
45{{template "footer" .}}
46</form>